com.raritantechnologies.struts
Class RedirectAction

java.lang.Object
  extended bycom.raritantechnologies.struts.RedirectAction
All Implemented Interfaces:
IActionHandler, IConfigurable

public class RedirectAction
extends java.lang.Object
implements IActionHandler

Configurable Redirect action. Can look up redirect based a map comparator.

XML Configuration Template:
   <ActionHandler class="com.raritantechnologies.struts.RedirectAction"
                     defaultForwardPath="[ default path that will be used for action forward ]"
                     isRedirect="[ true(default)|false - if false will create a forward rather than a redirect ]"
                     defaultForwardMapping="[ forward default name in struts action configuration ]" >

     <!-- optional Dynamic forward mapping -->
     <UseForward forwardPath="[ path to forward to ]"
                    isRedirect="[ true(default)|false ]"
                    type="[ PATH | MAPPING ]" >

        <MapComparator>
           <!-- see configuration for MapComparator -->
        </MapComparator>

     </UseForward>

   </ActionHandler>
 


Constructor Summary
RedirectAction()
           
 
Method Summary
 ActionForward handleAction(ActionMapping mapping, ActionForm form, DynamicHttpServletRequest request, HttpServletResponse response)
           
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedirectAction

public RedirectAction()
Method Detail

handleAction

public ActionForward handleAction(ActionMapping mapping,
                                  ActionForm form,
                                  DynamicHttpServletRequest request,
                                  HttpServletResponse response)
                           throws java.lang.Exception
Specified by:
handleAction in interface IActionHandler
Throws:
java.lang.Exception

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IConfigurable
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

Specified by:
initialize in interface IConfigurable