com.micromail.action
Class AddressAction
java.lang.Object
org.apache.struts.action.Action
org.apache.struts.actions.DispatchAction
com.micromail.action.GeneralDispatchAction
com.micromail.action.AddressAction
- public class AddressAction
- extends GeneralDispatchAction
This class contains action methods for both the editable address book page
and the address selection page
Fields inherited from class org.apache.struts.actions.DispatchAction |
clazz, log, messages, methods, types |
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 |
Method Summary |
org.apache.struts.action.ActionForward |
delete(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deletes selected addresses |
org.apache.struts.action.ActionForward |
edit(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Prepares a selected address for editing. |
protected java.util.Map |
getKeyMethodMap()
Gets the Map mapping resource string keys to method names within this class |
org.apache.struts.action.ActionForward |
goTo(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Proceeds to the address book entry/edit page |
org.apache.struts.action.ActionForward |
insert(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Inserts selected addresses into the message being composed |
org.apache.struts.action.ActionForward |
save(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Saves a new or updated address book entry |
Methods inherited from class org.apache.struts.actions.DispatchAction |
dispatchMethod, getMethod, unspecified |
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 |
AddressAction
public AddressAction()
getKeyMethodMap
protected java.util.Map getKeyMethodMap()
- Gets the Map mapping resource string keys to method names within this class
- Specified by:
getKeyMethodMap
in class GeneralDispatchAction
- Returns:
- the Map
goTo
public org.apache.struts.action.ActionForward goTo(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
- Proceeds to the address book entry/edit page
- Parameters:
mapping
- the Struts ActionMapping objectrequest
- the servlet requestresponse
- the servlet response
- Returns:
- the ActionForward object
- Throws:
java.lang.Exception
edit
public org.apache.struts.action.ActionForward edit(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
- Prepares a selected address for editing. If more than one address has been checked,
only the first one will be displayed for editing
- Parameters:
mapping
- the Struts ActionMapping objectrequest
- the servlet requestresponse
- the servlet response
- Returns:
- the ActionForward object
- Throws:
java.lang.Exception
delete
public org.apache.struts.action.ActionForward delete(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
- Deletes selected addresses
- Parameters:
mapping
- the Struts ActionMapping objectrequest
- the servlet requestresponse
- the servlet response
- Returns:
- the ActionForward object
- Throws:
java.lang.Exception
save
public org.apache.struts.action.ActionForward save(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
- Saves a new or updated address book entry
- Parameters:
mapping
- the Struts ActionMapping objectrequest
- the servlet requestresponse
- the servlet response
- Returns:
- the ActionForward object
- Throws:
java.lang.Exception
insert
public org.apache.struts.action.ActionForward insert(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
- Inserts selected addresses into the message being composed
- Parameters:
mapping
- the Struts ActionMapping objectrequest
- the servlet requestresponse
- the servlet response
- Returns:
- the ActionForward object
- Throws:
java.lang.Exception