Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| The Spring Framework
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
org.springframework.web.servlet.ModelAndView

Packages that use ModelAndView
org.springframework.test.web | Helper classes for unit tests based on Spring's web support.
org.springframework.web.servlet | Provides servlets that integrate with the application context infrastructure, and the core interfaces and classes for the Spring web MVC framework.
org.springframework.web.servlet.handler | Provides standard HandlerMapping implementations, including abstract base classes for custom implementations.
org.springframework.web.servlet.mvc | Standard controller implementations for the servlet MVC framework that comes with Spring.
org.springframework.web.servlet.mvc.annotation | Support package for annotation-based Servlet MVC controllers.
org.springframework.web.servlet.mvc.multiaction | Package allowing MVC Controller implementations to handle requests at method rather than class level.
org.springframework.web.servlet.mvc.throwaway | Throwaway command controllers are a WebWork/Maverick-style alternative to Spring's default Servlet/Struts-style Controller approach.

Uses of ModelAndView in org.springframework.test.web

Methods in org.springframework.test.web with parameters of type ModelAndView
`protected Object` | `AbstractModelAndViewTests.assertAndReturnModelAttributeOfType(ModelAndView mav, Object modelName, Class expectedType)` Checks whether the model value under the given `modelName` exists and checks it type, based on the `expectedType`.
`static Object` | `ModelAndViewAssert.assertAndReturnModelAttributeOfType(ModelAndView mav, Object modelName, Class expectedType)` Checks whether the model value under the given `modelName` exists and checks it type, based on the `expectedType`.
`protected void` | `AbstractModelAndViewTests.assertCompareListModelAttribute(ModelAndView mav, Object modelName, List expectedList)` Compare each individual entry in a list, without first sorting the lists.
`static void` | `ModelAndViewAssert.assertCompareListModelAttribute(ModelAndView mav, Object modelName, List expectedList)` Compare each individual entry in a list, without first sorting the lists.
`protected void` | `AbstractModelAndViewTests.assertModelAttributeAvailable(ModelAndView mav, Object modelName)` Assert whether or not a model attribute is available.
`static void` | `ModelAndViewAssert.assertModelAttributeAvailable(ModelAndView mav, Object modelName)` Assert whether or not a model attribute is available.
`protected void` | `AbstractModelAndViewTests.assertModelAttributeValue(ModelAndView mav, Object modelName, Object expectedValue)` Compare a given `expectedValue` to the value from the model bound under the given `modelName`.
`static void` | `ModelAndViewAssert.assertModelAttributeValue(ModelAndView mav, Object modelName, Object expectedValue)` Compare a given `expectedValue` to the value from the model bound under the given `modelName`.
`protected void` | `AbstractModelAndViewTests.assertModelAttributeValues(ModelAndView mav, Map expectedModel)` Inspect the `expectedModel` to see if all elements in the model appear and are equal.
`static void` | `ModelAndViewAssert.assertModelAttributeValues(ModelAndView mav, Map expectedModel)` Inspect the `expectedModel` to see if all elements in the model appear and are equal.
`protected void` | `AbstractModelAndViewTests.assertSortAndCompareListModelAttribute(ModelAndView mav, Object modelName, List expectedList, Comparator comparator)` Compare each individual entry in a list after having sorted both lists (optionally using a comparator).
`static void` | `ModelAndViewAssert.assertSortAndCompareListModelAttribute(ModelAndView mav, Object modelName, List expectedList, Comparator comparator)` Compare each individual entry in a list after having sorted both lists (optionally using a comparator).
`protected void` | `AbstractModelAndViewTests.assertViewName(ModelAndView mav, String expectedName)` Check to see if the view name in the ModelAndView matches the given `expectedName`.
`static void` | `ModelAndViewAssert.assertViewName(ModelAndView mav, String expectedName)` Check to see if the view name in the ModelAndView matches the given `expectedName`.

Uses of ModelAndView in org.springframework.web.servlet

Methods in org.springframework.web.servlet that return ModelAndView
`ModelAndView` | `ModelAndView.addAllObjects(Map modelMap)` Add all attributes contained in the provided Map to the model.
`ModelAndView` | `ModelAndView.addObject(Object attributeValue)` Add an attribute to the model using parameter name generation.
`ModelAndView` | `ModelAndView.addObject(String attributeName, Object attributeValue)` Add an attribute to the model.
`ModelAndView` | `ModelAndViewDefiningException.getModelAndView()` Return the ModelAndView that this exception contains for forwarding to.
`ModelAndView` | `HandlerAdapter.handle(HttpServletRequest request, HttpServletResponse response, Object handler)` Use the given handler to handle this request.
`protected ModelAndView` | `DispatcherServlet.processHandlerException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)` Determine an error ModelAndView via the registered HandlerExceptionResolvers.
`ModelAndView` | `HandlerExceptionResolver.resolveException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)` Try to resolve the given exception that got thrown during on handler execution, returning a ModelAndView that represents a specific error page if appropriate.

Methods in org.springframework.web.servlet with parameters of type ModelAndView
`void` | `HandlerInterceptor.postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView)` Intercept the execution of a handler.
`protected void` | `DispatcherServlet.render(ModelAndView mv, HttpServletRequest request, HttpServletResponse response)` Render the given ModelAndView.

Constructors in org.springframework.web.servlet with parameters of type ModelAndView
`ModelAndViewDefiningException(ModelAndView modelAndView)` Create new ModelAndViewDefiningException with the given ModelAndView, typically representing a specific error page.

Uses of ModelAndView in org.springframework.web.servlet.handler

Methods in org.springframework.web.servlet.handler that return ModelAndView
`protected ModelAndView` | `SimpleMappingExceptionResolver.doResolveException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)` Actually resolve the given exception that got thrown during on handler execution, returning a ModelAndView that represents a specific error page if appropriate.
`protected ModelAndView` | `SimpleMappingExceptionResolver.getModelAndView(String viewName, Exception ex)` Return a ModelAndView for the given view name and exception.
`protected ModelAndView` | `SimpleMappingExceptionResolver.getModelAndView(String viewName, Exception ex, HttpServletRequest request)` Return a ModelAndView for the given request, view name and exception.
`ModelAndView` | `SimpleServletHandlerAdapter.handle(HttpServletRequest request, HttpServletResponse response, Object handler)`
`ModelAndView` | `SimpleMappingExceptionResolver.resolveException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)` Checks whether this resolver is supposed to apply (i.e. the handler matches in case of "mappedHandlers" having been specified), then delegates to the `SimpleMappingExceptionResolver.doResolveException(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.Object, java.lang.Exception)` template method.

Methods in org.springframework.web.servlet.handler with parameters of type ModelAndView
`void` | `WebRequestHandlerInterceptorAdapter.postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView)`
`void` | `HandlerInterceptorAdapter.postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView)` This implementation is empty.

Uses of ModelAndView in org.springframework.web.servlet.mvc

Methods in org.springframework.web.servlet.mvc that return ModelAndView
`ModelAndView` | `SimpleControllerHandlerAdapter.handle(HttpServletRequest request, HttpServletResponse response, Object handler)`
`ModelAndView` | `HttpRequestHandlerAdapter.handle(HttpServletRequest request, HttpServletResponse response, Object handler)`
`protected abstract ModelAndView` | `AbstractCommandController.handle(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors)` Template method for request handling, providing a populated and validated instance of the command class, and an Errors object containing binding and validation errors.
`protected ModelAndView` | `AbstractFormController.handleInvalidSubmit(HttpServletRequest request, HttpServletResponse response)` Handle an invalid submit request, e.g. when in session form mode but no form object was found in the session (like in case of an invalid resubmit by the browser).
`protected ModelAndView` | `AbstractWizardFormController.handleInvalidSubmit(HttpServletRequest request, HttpServletResponse response)` Handle an invalid submit request, e.g. when in session form mode but no form object was found in the session (like in case of an invalid resubmit by the browser).
`ModelAndView` | `Controller.handleRequest(HttpServletRequest request, HttpServletResponse response)` Process the request and return a ModelAndView object which the DispatcherServlet will render.
`ModelAndView` | `AbstractController.handleRequest(HttpServletRequest request, HttpServletResponse response)`
`protected ModelAndView` | `AbstractFormController.handleRequestInternal(HttpServletRequest request, HttpServletResponse response)` Handles two cases: form submissions and showing a new form.
`protected ModelAndView` | `ServletWrappingController.handleRequestInternal(HttpServletRequest request, HttpServletResponse response)` Invoke the the wrapped Servlet instance.
`protected ModelAndView` | `ServletForwardingController.handleRequestInternal(HttpServletRequest request, HttpServletResponse response)`
`protected ModelAndView` | `ParameterizableViewController.handleRequestInternal(HttpServletRequest request, HttpServletResponse response)` Return a ModelAndView object with the specified view name.
`protected ModelAndView` | `AbstractUrlViewController.handleRequestInternal(HttpServletRequest request, HttpServletResponse response)` Retrieves the URL path to use for lookup and delegates to `AbstractUrlViewController.getViewNameForRequest(javax.servlet.http.HttpServletRequest)`.
`protected abstract ModelAndView` | `AbstractController.handleRequestInternal(HttpServletRequest request, HttpServletResponse response)` Template method.
`protected ModelAndView` | `AbstractCommandController.handleRequestInternal(HttpServletRequest request, HttpServletResponse response)`
`protected ModelAndView` | `CancellableFormController.onCancel(HttpServletRequest request, HttpServletResponse response, Object command)` Callback method for handling a cancel request.
`protected ModelAndView` | `CancellableFormController.onCancel(Object command)` Simple `onCancel` version.
`protected ModelAndView` | `SimpleFormController.onSubmit(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors)` Submit callback with all parameters.
`protected ModelAndView` | `SimpleFormController.onSubmit(Object command)` Simplest `onSubmit` variant.
`protected ModelAndView` | `SimpleFormController.onSubmit(Object command, BindException errors)` Simpler `onSubmit` variant.
`protected ModelAndView` | `AbstractWizardFormController.processCancel(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors)` Template method for processing the cancel action of this wizard.
`protected abstract ModelAndView` | `AbstractWizardFormController.processFinish(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors)` Template method for processing the final action of this wizard.
`protected abstract ModelAndView` | `AbstractFormController.processFormSubmission(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors)` Process form submission request.
`protected ModelAndView` | `SimpleFormController.processFormSubmission(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors)` This implementation calls `SimpleFormController.showForm(HttpServletRequest, HttpServletResponse, BindException)` in case of errors, and delegates to the full `SimpleFormController.onSubmit(HttpServletRequest, HttpServletResponse, Object, BindException)`'s variant else.
`protected ModelAndView` | `CancellableFormController.processFormSubmission(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors)` This implementation first checks to see if the incoming is a cancel request, through a call to `CancellableFormController.isCancelRequest(javax.servlet.http.HttpServletRequest)`.
`protected ModelAndView` | `AbstractWizardFormController.processFormSubmission(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors)` Apply wizard workflow: finish, cancel, page change.
`protected ModelAndView` | `AbstractFormController.showForm(HttpServletRequest request, BindException errors, String viewName)` Prepare model and view for the given form, including reference and errors.
`protected ModelAndView` | `AbstractFormController.showForm(HttpServletRequest request, BindException errors, String viewName, Map controlModel)` Prepare model and view for the given form, including reference and errors, adding a controller-specific control model.
`protected abstract ModelAndView` | `AbstractFormController.showForm(HttpServletRequest request, HttpServletResponse response, BindException errors)` Prepare the form model and view, including reference and error data.
`protected ModelAndView` | `SimpleFormController.showForm(HttpServletRequest request, HttpServletResponse response, BindException errors)` This implementation shows the configured form view, delegating to the analogous `SimpleFormController.showForm(HttpServletRequest, HttpServletResponse, BindException, Map)` variant with a "controlModel" argument.
`protected ModelAndView` | `AbstractWizardFormController.showForm(HttpServletRequest request, HttpServletResponse response, BindException errors)` Show the first page as form view.
`protected ModelAndView` | `SimpleFormController.showForm(HttpServletRequest request, HttpServletResponse response, BindException errors, Map controlModel)` This implementation shows the configured form view.
`protected ModelAndView` | `AbstractFormController.showNewForm(HttpServletRequest request, HttpServletResponse response)` Show a new form.
`protected ModelAndView` | `AbstractWizardFormController.showPage(HttpServletRequest request, BindException errors, int page)` Prepare the form model and view, including reference and error data, for the given page.

Methods in org.springframework.web.servlet.mvc with parameters of type ModelAndView
`void` | `WebContentInterceptor.postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView)` This implementation is empty.

Uses of ModelAndView in org.springframework.web.servlet.mvc.annotation

Methods in org.springframework.web.servlet.mvc.annotation that return ModelAndView
`ModelAndView` | `AnnotationMethodHandlerAdapter.handle(HttpServletRequest request, HttpServletResponse response, Object handler)`
`protected ModelAndView` | `AnnotationMethodHandlerAdapter.handleNoSuchRequestHandlingMethod(NoSuchRequestHandlingMethodException ex, HttpServletRequest request, HttpServletResponse response)` Handle the case where no request handler method was found.
`protected ModelAndView` | `AnnotationMethodHandlerAdapter.invokeHandlerMethod(HttpServletRequest request, HttpServletResponse response, Object handler)`

Uses of ModelAndView in org.springframework.web.servlet.mvc.multiaction

Methods in org.springframework.web.servlet.mvc.multiaction that return ModelAndView
`protected ModelAndView` | `MultiActionController.handleNoSuchRequestHandlingMethod(NoSuchRequestHandlingMethodException ex, HttpServletRequest request, HttpServletResponse response)` Handle the case where no request handler method was found.
`protected ModelAndView` | `MultiActionController.handleRequestInternal(HttpServletRequest request, HttpServletResponse response)` Determine a handler method and invoke it.
`protected ModelAndView` | `MultiActionController.invokeNamedMethod(String methodName, HttpServletRequest request, HttpServletResponse response)` Invokes the named method.

Uses of ModelAndView in org.springframework.web.servlet.mvc.throwaway

Methods in org.springframework.web.servlet.mvc.throwaway that return ModelAndView
`ModelAndView` | `ThrowawayController.execute()` Deprecated. Execute this controller according to its bean properties.
`ModelAndView` | `ThrowawayControllerHandlerAdapter.handle(HttpServletRequest request, HttpServletResponse response, Object handler)` Deprecated. This implementation binds request parameters to the ThrowawayController instance and then calls `execute` on it.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| The Spring Framework
PREV NEXT | FRAMES NO FRAMES

Copyright © 2002-2008 The Spring Framework.