net.sourceforge.formview.struts.action
Class FormViewDispatchAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.apache.struts.actions.DispatchAction
          extended by net.sourceforge.formview.struts.action.FormViewDispatchAction

public abstract class FormViewDispatchAction
extends org.apache.struts.actions.DispatchAction

Description : Manage FormView and state into action forward.

Author:
Angelo ZERR

Field Summary
 
Fields inherited from class org.apache.struts.actions.DispatchAction
clazz, log, messages, methods, types
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
FormViewDispatchAction()
           
 
Method Summary
protected  org.apache.struts.action.ActionForward dispatchMethod(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String name)
          Save FormView into request with name of form (path of mapping)
abstract  org.apache.struts.action.ActionForward display(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm actionForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Dispatch Display To Implement (ex : load Business Object list...)
abstract  org.apache.struts.action.ActionForward load(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm actionForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 org.apache.struts.action.ActionForward loadCreate(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Load Create dispatch action : Set state to CREATE and call load dispatch Action.
 org.apache.struts.action.ActionForward loadRead(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Load Create dispatch action : Set state to READ and call load dispatch Action.
 org.apache.struts.action.ActionForward loadUpdate(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Load Create dispatch action : Set state to UPDATE and call load dispatch Action.
 org.apache.struts.action.ActionForward reload(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm actionForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Reload action : call dispatch display.
 
Methods inherited from class org.apache.struts.actions.DispatchAction
cancelled, execute, getMethod, getMethodName, unspecified
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormViewDispatchAction

public FormViewDispatchAction()
Method Detail

dispatchMethod

protected org.apache.struts.action.ActionForward dispatchMethod(org.apache.struts.action.ActionMapping mapping,
                                                                org.apache.struts.action.ActionForm form,
                                                                javax.servlet.http.HttpServletRequest request,
                                                                javax.servlet.http.HttpServletResponse response,
                                                                java.lang.String name)
                                                         throws java.lang.Exception
Save FormView into request with name of form (path of mapping)

Overrides:
dispatchMethod in class org.apache.struts.actions.DispatchAction
Parameters:
mapping -
actionForm -
request -
response -
name -
Returns:
Throws:
java.lang.Exception

reload

public org.apache.struts.action.ActionForward reload(org.apache.struts.action.ActionMapping mapping,
                                                     org.apache.struts.action.ActionForm actionForm,
                                                     javax.servlet.http.HttpServletRequest request,
                                                     javax.servlet.http.HttpServletResponse response)
                                              throws java.lang.Exception
Reload action : call dispatch display. You can override this dispatch if you want to do another.

Parameters:
mapping -
actionForm -
request -
response -
Returns:
Throws:
java.lang.Exception

display

public abstract org.apache.struts.action.ActionForward display(org.apache.struts.action.ActionMapping mapping,
                                                               org.apache.struts.action.ActionForm actionForm,
                                                               javax.servlet.http.HttpServletRequest request,
                                                               javax.servlet.http.HttpServletResponse response)
                                                        throws java.lang.Exception
Dispatch Display To Implement (ex : load Business Object list...)

Parameters:
mapping -
actionForm -
request -
response -
Returns:
Throws:
java.lang.Exception

loadCreate

public final org.apache.struts.action.ActionForward loadCreate(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
Load Create dispatch action : Set state to CREATE and call load dispatch Action.

Parameters:
mapping -
form -
request -
response -
dispatchName -
Returns:
Throws:
java.lang.Exception

loadRead

public final org.apache.struts.action.ActionForward loadRead(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
Load Create dispatch action : Set state to READ and call load dispatch Action.

Parameters:
mapping -
form -
request -
response -
dispatchName -
Returns:
Throws:
java.lang.Exception

loadUpdate

public final org.apache.struts.action.ActionForward loadUpdate(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
Load Create dispatch action : Set state to UPDATE and call load dispatch Action.

Parameters:
mapping -
form -
request -
response -
dispatchName -
Returns:
Throws:
java.lang.Exception

load

public abstract org.apache.struts.action.ActionForward load(org.apache.struts.action.ActionMapping mapping,
                                                            org.apache.struts.action.ActionForm actionForm,
                                                            javax.servlet.http.HttpServletRequest request,
                                                            javax.servlet.http.HttpServletResponse response)
                                                     throws java.lang.Exception
Throws:
java.lang.Exception


Copyright 2006 null. All Rights Reserved.