com.ashridgetech.gen2j.web
Class FormAction
java.lang.Object
|
+--org.apache.struts.action.Action
|
+--com.ashridgetech.gen2j.web.FormAction
- public class FormAction
- extends org.apache.struts.action.Action
Implementation of Action
that processes
a form action request to a UCM.
Fields inherited from class org.apache.struts.action.Action |
DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGES_KEY, MULTIPART_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY |
Method Summary |
static String |
actionParamName(javax.servlet.ServletRequest request,
String methodName)
Get the name of the action parameter to be sent for an Action. |
org.apache.struts.action.ActionForward |
perform(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Find the UCM to process the specified HTTP request,
and forward to the view JSP for the same UCM. |
Methods inherited from class org.apache.struts.action.Action |
generateToken, getLocale, getResources, getServlet, isCancelled, isTokenValid, perform, perform, perform, resetToken, saveErrors, saveToken, setLocale, setServlet, toHex |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ACTION_PARAM_PREFIX_MARKER
public static final char ACTION_PARAM_PREFIX_MARKER
ACTION_PARAM_ACTION_PREFIX
public static final String ACTION_PARAM_ACTION_PREFIX
ACTION_PARAM_UCMID_PREFIX
public static final String ACTION_PARAM_UCMID_PREFIX
ACTION_PARAM_TOP_UCMID_PREFIX
public static final String ACTION_PARAM_TOP_UCMID_PREFIX
EMPTY_CLASS_ARRAY
protected static Class[] EMPTY_CLASS_ARRAY
EMPTY_OBJECT_ARRAY
protected static Object[] EMPTY_OBJECT_ARRAY
FormAction
public FormAction()
perform
public org.apache.struts.action.ActionForward perform(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
- Find the UCM to process the specified HTTP request,
and forward to the view JSP for the same UCM.
- Overrides:
perform
in class org.apache.struts.action.Action
- Parameters:
mapping
- The ActionMapping used to select this instanceactionForm
- The optional ActionForm bean for this request (if any)request
- The HTTP request we are processingresponse
- The HTTP response we are creating- Returns:
- an
ActionForward
indicating the required JSP - Throws:
IOException
- if an input/output error occursjavax.servlet.ServletException
- if a servlet exception occurs
actionParamName
public static String actionParamName(javax.servlet.ServletRequest request,
String methodName)
throws javax.servlet.ServletException
- Get the name of the action parameter to be sent for an Action.
The current object of the
JspManager
for the current request must be a UCM
- Parameters:
request
- used to find the current JspManager
methodName
- the method to be invoked by the Action- Returns:
- the value for the "name" attribute of the HTML input button
- Throws:
javax.servlet.ServletException
- if the current object is not a UCM
Copyright © 2002 Ashridge Technologies Ltd. All Rights Reserved.