| java.lang.Object | |||||
| ↳ | org.springframework.context.support.ApplicationObjectSupport | ||||
| ↳ | org.springframework.web.context.support.WebApplicationObjectSupport | ||||
| ↳ | org.springframework.web.servlet.support.WebContentGenerator | ||||
| ↳ | org.springframework.web.servlet.mvc.AbstractController | ||||
| ↳ | org.springframework.web.servlet.mvc.ParameterizableViewController | ||||
Trivial controller that always returns a named view. The view can be configured using an exposed configuration property. This controller offers an alternative to sending a request straight to a view such as a JSP. The advantage here is that the client is not exposed to the concrete view technology but rather just to the controller URL; the concrete view will be determined by the ViewResolver.
An alternative to the ParameterizableViewController is a
MultiActionController,
which can define a variety of handler methods that just return a plain
ModelAndView instance for a given view name.
Workflow
(and that defined by superclass):
handleRequestInternal which
just returns the view, named by the configuration property
viewName. Nothing more, nothing lessExposed configuration properties
(and those defined by superclass):
| name | default | description |
| viewName | null | the name of the view the viewResolver will use to forward to (if this property is not set, a null view name will be returned directing the caller to calculate the view name from the current request) |
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.web.servlet.support.WebContentGenerator
| |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.context.support.ApplicationObjectSupport
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Return the name of the view to delegate to.
| |||||||||||
Set the name of the view to delegate to.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Return a ModelAndView object with the specified view name.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.web.servlet.mvc.AbstractController
| |||||||||||
From class
org.springframework.web.servlet.support.WebContentGenerator
| |||||||||||
From class
org.springframework.web.context.support.WebApplicationObjectSupport
| |||||||||||
From class
org.springframework.context.support.ApplicationObjectSupport
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.context.ApplicationContextAware
| |||||||||||
From interface
org.springframework.web.context.ServletContextAware
| |||||||||||
From interface
org.springframework.web.servlet.mvc.Controller
| |||||||||||