Save This Page
Home » struts-2.1.8.1-src » org.apache » struts2 » [javadoc | source]
org.apache.struts2
public class: ServletActionContext [javadoc | source]
java.lang.Object
   com.opensymphony.xwork2.ActionContext
      org.apache.struts2.ServletActionContext

All Implemented Interfaces:
    StrutsStatics

Web-specific context information for actions. This class subclasses ActionContext which provides access to things like the action name, value stack, etc. This class adds access to web objects like servlet parameters, request attributes and things like the HTTP session.
Field Summary
public static final  String STRUTS_VALUESTACK_KEY     
public static final  String ACTION_MAPPING     
Method from org.apache.struts2.ServletActionContext Summary:
getActionContext,   getActionMapping,   getPageContext,   getRequest,   getResponse,   getServletContext,   getValueStack,   setRequest,   setResponse,   setServletContext
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts2.ServletActionContext Detail:
 public static ActionContext getActionContext(HttpServletRequest req) 
    Gets the current action context
 public static ActionMapping getActionMapping() 
    Gets the action mapping for this context
 public static PageContext getPageContext() 
    Returns the HTTP page context.
 public static HttpServletRequest getRequest() 
    Gets the HTTP servlet request object.
 public static HttpServletResponse getResponse() 
    Gets the HTTP servlet response object.
 public static ServletContext getServletContext() 
    Gets the servlet context.
 public static ValueStack getValueStack(HttpServletRequest req) 
    Gets the current value stack for this request
 public static  void setRequest(HttpServletRequest request) 
    Sets the HTTP servlet request object.
 public static  void setResponse(HttpServletResponse response) 
    Sets the HTTP servlet response object.
 public static  void setServletContext(ServletContext servletContext) 
    Sets the current servlet context object