public interface StrutsStatics
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();
HttpServletRequest request = (HttpServletRequest)context.get(HTTP_REQUEST);
Modifier and Type | Field and Description |
---|---|
static String |
HTTP_REQUEST
Constant for the HTTP request object.
|
static String |
HTTP_RESPONSE
Constant for the HTTP response object.
|
static String |
PAGE_CONTEXT
Constant for the JSP
page context . |
static String |
SERVLET_CONTEXT
Constant for the
servlet context object. |
static String |
SERVLET_DISPATCHER
Constant for an HTTP
request dispatcher . |
static String |
STRUTS_ACTION_TAG_INVOCATION
Set as an attribute in the request to let other parts of the framework know that the invocation is happening inside an
action tag
|
static String |
STRUTS_PORTLET_CONTEXT
Constant for the PortletContext object
|
static final String HTTP_REQUEST
static final String HTTP_RESPONSE
static final String SERVLET_DISPATCHER
request dispatcher
.static final String SERVLET_CONTEXT
servlet context
object.static final String PAGE_CONTEXT
page context
.static final String STRUTS_PORTLET_CONTEXT
static final String STRUTS_ACTION_TAG_INVOCATION
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.