Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

ActionMapper is responsible for comming out with an ActionMapping which is basically a transfer-object, containing mapping information used by Dispatcher and various outer ui component to decide on which action to be executedThe ActionMapper fetches the ActionMapping object corresponding to a given request. Essentially, the ActionMapping is a data transfer object that collects together details such as the Action class and method to execute. The mapping is utilized by the Dispatcher and various user interface components. It is customizable through 'struts.mapper.class' property entry in struts.properties.

Customize

Warning

Custom ActionMapper must implements implement ActionMapper interface and have a default constructor.

...

Code Block
public class MyCustomActionMapper implements ActionMapper {
  public ActionMapping getMapping(HttpServletRequest request, 
                                  ConfigurationManager configManager) {
    ....
  }

  public String getUriFromActionMapping(ActionMapping mapping) { 
    ....
  }
}

Next: Action Proxy & ActionProxy Factory