de.matthias_burbach.strux
Class NestModuleAction

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended byde.matthias_burbach.strux.NestModuleAction

public class NestModuleAction
extends org.apache.struts.action.Action

Is a utility class that must be called when a module wants to nest another module.
Note that recursive nesting of different modules is supported to any depth, however, each module may only be nested at most once in a nesting stack! If that's a limitation to you you may come up with a more flexible implementation of the classes NestModuleAction, UnNestModuleAction, and UnNestActionInfo.
Accepts any of the following sub classes of ActionForm

Forwards to

Author:
Matthias Burbach

Field Summary
 
Fields inherited from class org.apache.struts.action.Action
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY
 
Constructor Summary
NestModuleAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  java.lang.String getContinueModule(org.apache.struts.action.ActionMapping mapping)
           
protected  java.lang.String getContinuePath(org.apache.struts.action.ActionMapping mapping)
           
private  java.lang.String getMidFix(java.lang.String aString, java.lang.String prefix, java.lang.String suffix)
           
protected  java.lang.String getNestModule(org.apache.struts.action.ActionMapping mapping)
           
 
Methods inherited from class org.apache.struts.action.Action
execute, generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, perform, perform, resetToken, saveErrors, saveMessages, saveToken, setLocale, setServlet, toHex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NestModuleAction

public NestModuleAction()
Method Detail

execute

public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
                                               throws java.lang.Exception
Throws:
java.lang.Exception
See Also:
Action.execute( ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse)

getContinuePath

protected java.lang.String getContinuePath(org.apache.struts.action.ActionMapping mapping)

getContinueModule

protected java.lang.String getContinueModule(org.apache.struts.action.ActionMapping mapping)

getNestModule

protected java.lang.String getNestModule(org.apache.struts.action.ActionMapping mapping)

getMidFix

private java.lang.String getMidFix(java.lang.String aString,
                                   java.lang.String prefix,
                                   java.lang.String suffix)