net.sf.jguard.example.struts.actions
Class BaseAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by net.sf.jguard.example.struts.actions.BaseAction
Direct Known Subclasses:
AuthenticationFailedAction, CaptchaAction, DomainDispatchAction, GroovyDispatchAction, PermissionDispatchAction, PrincipalDispatchAction, UserDispatchAction

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

base action which unifies Actions and DispatchActions with the new ActionDispatcher tips. all actions should extends it.

Author:
Charles Gay

Field Summary
protected  org.apache.struts.actions.ActionDispatcher dispatcher
           
 
Fields inherited from class org.apache.struts.action.Action
servlet
 
Constructor Summary
BaseAction()
           
 
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)
           
 void setServlet(org.apache.struts.action.ActionServlet actionServlet)
          initialize some stuff (the Spring framework webAppplicationContext or another one).
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dispatcher

protected org.apache.struts.actions.ActionDispatcher dispatcher
Constructor Detail

BaseAction

public BaseAction()
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
Overrides:
execute in class org.apache.struts.action.Action
Throws:
java.lang.Exception

setServlet

public void setServlet(org.apache.struts.action.ActionServlet actionServlet)
initialize some stuff (the Spring framework webAppplicationContext or another one).

Overrides:
setServlet in class org.apache.struts.action.Action
Parameters:
actionServlets -


Copyright © 2004-2008. All Rights Reserved.