Oracle Fusion Middleware Java API Reference for Oracle ADF Lifecycle
11g Release 1 (11.1.1.6.0)

E10652-07

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

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by oracle.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

Nested Class Summary
 class DataAction.Execute
           
 
Field Summary
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
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
addErrors, addMessages, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveToken, setLocale, setServlet
 
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.

Overrides:
execute in class org.apache.struts.action.Action
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.

Overrides:
execute in class org.apache.struts.action.Action
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.

Overrides:
saveMessages in class org.apache.struts.action.Action

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 Fusion Middleware Java API Reference for Oracle ADF Lifecycle
11g Release 1 (11.1.1.6.0)

E10652-07

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