Code example for ModelAndView

Methods: getModel

0
    public ModelAndView displayVerifier() { 
        return new ModelAndView("displayVerifier"); 
    } 
 
    private ModelAndView handleInternalRedirect(ClientApp app) { 
        ModelAndView modelAndView = new ModelAndView("newClientForm"); 
        modelAndView.getModel().put("client", app); 
        return modelAndView; 
    } 
 
    public void setServletContext(ServletContext servletContext) { 
        oauthDataProvider = OAuthUtils.getOAuthDataProvider(null, servletContext); 
        clientManager = (OAuthClientManager)oauthDataProvider; 
    } 
}