org.appfuse.webapp.action
Class UserAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.apache.struts.actions.DispatchAction
          extended by org.appfuse.webapp.action.BaseAction
              extended by org.appfuse.webapp.action.UserAction

public final class UserAction
extends BaseAction

Implementation of Action that interacts with the UserForm and retrieves values. It interacts with the UserManager to retrieve/persist values to the database.

View Source

Author:
Matt Raible Modified by Dan Kibler
Mapping:
name="userForm" path="/users" scope="request" validate="false" parameter="method" input="mainMenu" roles="admin", name="userForm" path="/editUser" scope="request" validate="false" parameter="method" input="list" roles="admin", name="userForm" path="/editProfile" scope="request" validate="false" parameter="method" input="mainMenu", name="userForm" path="/saveUser" scope="request" validate="false" parameter="method" input="edit"
ActionForward:
name="list" path="/WEB-INF/pages/userList.jsp", name="edit" path="/WEB-INF/pages/userForm.jsp"

Field Summary
 
Fields inherited from class org.appfuse.webapp.action.BaseAction
log
 
Fields inherited from class org.apache.struts.actions.DispatchAction
clazz, messages, methods, types
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
UserAction()
           
 
Method Summary
 ActionForward add(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
           
 ActionForward cancel(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
           
 ActionForward delete(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
           
 ActionForward edit(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
           
 ActionForward save(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
           
 ActionForward search(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
           
 ActionForward unspecified(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class org.appfuse.webapp.action.BaseAction
convert, convertLists, execute, getActionForm, getActionMethod, getBean, getConfiguration, getMessages, removeFormBean, updateFormBean
 
Methods inherited from class org.apache.struts.actions.DispatchAction
cancelled, dispatchMethod, getMethod, getMethodName, getParameter
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, 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

UserAction

public UserAction()
Method Detail

add

public ActionForward add(ActionMapping mapping,
                         ActionForm form,
                         HttpServletRequest request,
                         HttpServletResponse response)
                  throws Exception
Throws:
Exception

cancel

public ActionForward cancel(ActionMapping mapping,
                            ActionForm form,
                            HttpServletRequest request,
                            HttpServletResponse response)
                     throws Exception
Throws:
Exception

delete

public ActionForward delete(ActionMapping mapping,
                            ActionForm form,
                            HttpServletRequest request,
                            HttpServletResponse response)
                     throws Exception
Throws:
Exception

edit

public ActionForward edit(ActionMapping mapping,
                          ActionForm form,
                          HttpServletRequest request,
                          HttpServletResponse response)
                   throws Exception
Throws:
Exception

save

public ActionForward save(ActionMapping mapping,
                          ActionForm form,
                          HttpServletRequest request,
                          HttpServletResponse response)
                   throws Exception
Throws:
Exception

search

public ActionForward search(ActionMapping mapping,
                            ActionForm form,
                            HttpServletRequest request,
                            HttpServletResponse response)
                     throws Exception
Throws:
Exception

unspecified

public ActionForward unspecified(ActionMapping mapping,
                                 ActionForm form,
                                 HttpServletRequest request,
                                 HttpServletResponse response)
                          throws Exception
Overrides:
unspecified in class DispatchAction
Throws:
Exception


Copyright � 2002-2006