|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.xwork2.ActionContext
org.apache.struts2.ServletActionContext
public class ServletActionContext
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 | |
---|---|
static java.lang.String |
STRUTS_VALUESTACK_KEY
|
Fields inherited from class com.opensymphony.xwork2.ActionContext |
---|
ACTION_INVOCATION, ACTION_NAME, APPLICATION, CONVERSION_ERRORS, DEV_MODE, LOCALE, PARAMETERS, SESSION, TYPE_CONVERTER, VALUE_STACK |
Fields inherited from interface org.apache.struts2.StrutsStatics |
---|
HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERVLET_CONTEXT, SERVLET_DISPATCHER, STRUTS_PORTLET_CONTEXT |
Method Summary | |
---|---|
static com.opensymphony.xwork2.ActionContext |
getActionContext(javax.servlet.http.HttpServletRequest req)
Gets the current action context |
static javax.servlet.jsp.PageContext |
getPageContext()
Returns the HTTP page context. |
static javax.servlet.http.HttpServletRequest |
getRequest()
Gets the HTTP servlet request object. |
static javax.servlet.http.HttpServletResponse |
getResponse()
Gets the HTTP servlet response object. |
static javax.servlet.ServletContext |
getServletContext()
Gets the servlet context. |
static com.opensymphony.xwork2.util.OgnlValueStack |
getValueStack(javax.servlet.http.HttpServletRequest req)
Gets the current value stack for this request |
static void |
setRequest(javax.servlet.http.HttpServletRequest request)
Sets the HTTP servlet request object. |
static void |
setResponse(javax.servlet.http.HttpServletResponse response)
Sets the HTTP servlet response object. |
static void |
setServletContext(javax.servlet.ServletContext servletContext)
Sets the current servlet context object |
Methods inherited from class com.opensymphony.xwork2.ActionContext |
---|
get, getActionInvocation, getApplication, getContext, getContextMap, getConversionErrors, getLocale, getName, getParameters, getSession, getValueStack, put, setActionInvocation, setApplication, setContext, setContextMap, setConversionErrors, setLocale, setName, setParameters, setSession, setValueStack |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String STRUTS_VALUESTACK_KEY
Method Detail |
---|
public static com.opensymphony.xwork2.ActionContext getActionContext(javax.servlet.http.HttpServletRequest req)
req
- The request
public static com.opensymphony.xwork2.util.OgnlValueStack getValueStack(javax.servlet.http.HttpServletRequest req)
req
- The request
public static javax.servlet.jsp.PageContext getPageContext()
public static void setRequest(javax.servlet.http.HttpServletRequest request)
request
- the HTTP servlet request object.public static javax.servlet.http.HttpServletRequest getRequest()
public static void setResponse(javax.servlet.http.HttpServletResponse response)
response
- the HTTP servlet response object.public static javax.servlet.http.HttpServletResponse getResponse()
public static javax.servlet.ServletContext getServletContext()
public static void setServletContext(javax.servlet.ServletContext servletContext)
servletContext
- The servlet context to use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |