Package webwork.dispatcher
Class ConfigurationViewMapping
java.lang.Object
webwork.dispatcher.ConfigurationViewMapping
- All Implemented Interfaces:
ViewMapping
View mapping that uses the Configuration. This maps {action name, view name} tuples to views, e.g. JSP files.
The algorithm first queries the configuration for the actionName.viewName entry. If found, then that is used. If not
found, then parts of the action name is removed until a match is found. For example, if there is a configuration
entry for "foo.success", and the action name is "foo.bar" and the view is "success", then there will be a miss when
looking for "foo.bar.success" but a hit for "foo.success", which will thus be used.
- Version:
- $Revision: 1.11 $
- Author:
- Rickard Öberg (rickard@middleware-company.com)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ConfigurationViewMapping
public ConfigurationViewMapping()
-
-
Method Details
-
getView
Get view corresponding to given action and view names- Specified by:
getViewin interfaceViewMapping
-