Oracle Application Development Framework Lifecycle Java API Reference 10g Release 3 (10.1.3) B25779-01


oracle.adf.controller.v2.struts.actions
Class DataAction

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended byoracle.adf.controller.v2.struts.actions.DataAction

Direct Known Subclasses:
DataForwardAction

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

Bootstrap the execution of the ADF PageLifecycle.

Since:
10.1.3

Field Summary

 

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

 

Constructor Summary
DataAction()
           

 

Method Summary
protected  org.apache.struts.action.Action actionCreate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, DataActionMapping mapping)
          Creates a v1 DataAction.
 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)
          This is the entry point for the execution of an action from the Struts framework.
 org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
          This is another entry point for the execution of an action from the Struts framework using ServletRequest and ServletResponse.
protected  org.apache.struts.action.ActionMapping mappingCreate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, DataActionMapping mapping)
          Create a v1 DataActionMapping and transfer the content of the current mapping to it.
 void saveErrors(StrutsPageLifecycleContext context)
          Save all the error message from the lifecycle context to the request attribute.
 void saveMessages(javax.servlet.http.HttpServletRequest request, org.apache.struts.action.ActionMessages messages)
          Call the action saveMessages protected method.

 

Methods inherited from class org.apache.struts.action.Action
generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, 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

 

Constructor Detail

DataAction

public DataAction()

Method Detail

execute

public final 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
This is the entry point for the execution of an action from the Struts framework.

This method initializes the environment map and bootstraps the lifecycle by calling execute on the LifecycleProcessor.

Since the customization of the DataAction behavior should be achieved by extending the PageController functionality, this method is declared final.

If this action is a migrated v1 action, execute it using the v1 Lifecycle.

Parameters:
mapping - the ActionMapping used to select this instance.
form - the optional ActionForm bean for this request.
request - the HTTP Request we are processing.
response - the HTTP Response we are processing.
Throws:
java.lang.Exception

execute

public final org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
                                                            org.apache.struts.action.ActionForm form,
                                                            javax.servlet.ServletRequest request,
                                                            javax.servlet.ServletResponse response)
                                                     throws java.lang.Exception
This is another entry point for the execution of an action from the Struts framework using ServletRequest and ServletResponse.

This method simply delegate to the other execute method.

Since the customization of the DataAction behavior should be achieved by extending the lifecycle functionality, this method is declared final.

Parameters:
mapping - the ActionMapping used to select this instance.
form - the optional ActionForm bean for this request.
request - the Servlet Request we are processing.
response - the Servlet Response we are processing.
Throws:
java.lang.Exception
See Also:
execute

saveErrors

public void saveErrors(StrutsPageLifecycleContext context)
Save all the error message from the lifecycle context to the request attribute. Delegate to the base class saveError method using parameters from the StrutsPageLifecycleContext.

saveMessages

public void saveMessages(javax.servlet.http.HttpServletRequest request,
                         org.apache.struts.action.ActionMessages messages)
Call the action saveMessages protected method.

actionCreate

protected org.apache.struts.action.Action actionCreate(javax.servlet.http.HttpServletRequest request,
                                                       javax.servlet.http.HttpServletResponse response,
                                                       DataActionMapping mapping)
                                                throws java.io.IOException

Creates a v1 DataAction.

Create a DataAction of the type specified in the V1ActionClass property.
Returns:
an Action instance
Throws:
java.io.IOException

mappingCreate

protected org.apache.struts.action.ActionMapping mappingCreate(javax.servlet.http.HttpServletRequest request,
                                                               javax.servlet.http.HttpServletResponse response,
                                                               DataActionMapping mapping)
Create a v1 DataActionMapping and transfer the content of the current mapping to it.

Oracle Application Development Framework Lifecycle Java API Reference 10g Release 3 (10.1.3) B25779-01


Copyright © 1997, 2005, Oracle. All rights reserved.