webwork.dispatcher
Class ConfigurationViewMapping

java.lang.Object
  extended bywebwork.dispatcher.ConfigurationViewMapping
All Implemented Interfaces:
ViewMapping

public class ConfigurationViewMapping
extends java.lang.Object
implements 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
ConfigurationViewMapping()
           
 
Method Summary
 java.lang.Object getView(java.lang.String anActionName, java.lang.String aViewName)
          Get view corresponding to given action and view names
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationViewMapping

public ConfigurationViewMapping()
Method Detail

getView

public java.lang.Object getView(java.lang.String anActionName,
                                java.lang.String aViewName)
Get view corresponding to given action and view names

Specified by:
getView in interface ViewMapping


Copyright © 2001-2003 WebWork All Rights Reserved.