MCPcopy Index your code
hub / github.com/apache/struts / StrutsStatics

Interface StrutsStatics

core/src/main/java/org/apache/struts2/StrutsStatics.java:40–75  ·  view source on GitHub ↗

Constants used by Struts. The constants can be used to get or set objects out of the action context or other collections. Example: ActionContext.getContext().put(HTTP_REQUEST, request); or ActionContext context = ActionContext.getContext(); HttpS

Source from the content-addressed store, hash-verified

38 * HttpServletRequest request = (HttpServletRequest)context.get(HTTP_REQUEST);</code></ul>
39 */
40public interface StrutsStatics {
41
42 /**
43 * Constant for the HTTP request object.
44 */
45 public static final String HTTP_REQUEST = "com.opensymphony.xwork2.dispatcher.HttpServletRequest";
46
47 /**
48 * Constant for the HTTP response object.
49 */
50 public static final String HTTP_RESPONSE = "com.opensymphony.xwork2.dispatcher.HttpServletResponse";
51
52 /**
53 * Constant for an HTTP {@link javax.servlet.RequestDispatcher request dispatcher}.
54 */
55 public static final String SERVLET_DISPATCHER = "com.opensymphony.xwork2.dispatcher.ServletDispatcher";
56
57 /**
58 * Constant for the {@link javax.servlet.ServletContext servlet context} object.
59 */
60 public static final String SERVLET_CONTEXT = "com.opensymphony.xwork2.dispatcher.ServletContext";
61
62 /**
63 * Constant for the JSP {@link javax.servlet.jsp.PageContext page context}.
64 */
65 public static final String PAGE_CONTEXT = "com.opensymphony.xwork2.dispatcher.PageContext";
66
67 /** Constant for the PortletContext object */
68 public static final String STRUTS_PORTLET_CONTEXT = "struts.portlet.context";
69
70 /**
71 * Set as an attribute in the request to let other parts of the framework know that the invocation is happening inside an
72 * action tag
73 */
74 public static final String STRUTS_ACTION_TAG_INVOCATION= "struts.actiontag.invocation";
75}

Callers

nothing calls this directly

Implementers 13

ServletActionContextTestcore/src/test/java/org/apache/struts2/
ServletRedirectResultTestcore/src/test/java/org/apache/struts2/
ServletDispatcherResultTestcore/src/test/java/org/apache/struts2/
ServletActionContextcore/src/main/java/org/apache/struts2/
StrutsResultSupportcore/src/main/java/org/apache/struts2/
FilterDispatchercore/src/main/java/org/apache/struts2/
StrutsPrepareAndExecuteFiltercore/src/main/java/org/apache/struts2/
StrutsPrepareFiltercore/src/main/java/org/apache/struts2/
StrutsExecuteFiltercore/src/main/java/org/apache/struts2/
ServletConfigInterceptorcore/src/main/java/org/apache/struts2/
PortletResultTestplugins/portlet/src/test/java/org/apac
Jsr168Dispatcherplugins/portlet/src/main/java/org/apac

Calls

no outgoing calls

Tested by

no test coverage detected