FileDocCategorySizeDatePackage
StrutsStatics.javaAPI DocExample2511Mon Jul 23 13:26:56 BST 2007org.apache.struts2

StrutsStatics

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);

Fields Summary
public static final String
HTTP_REQUEST
Constant for the HTTP request object.
public static final String
HTTP_RESPONSE
Constant for the HTTP response object.
public static final String
SERVLET_DISPATCHER
Constant for an HTTP {@link javax.servlet.RequestDispatcher request dispatcher}.
public static final String
SERVLET_CONTEXT
Constant for the {@link javax.servlet.ServletContext servlet context} object.
public static final String
PAGE_CONTEXT
Constant for the JSP {@link javax.servlet.jsp.PageContext page context}.
public static final String
STRUTS_PORTLET_CONTEXT
Constant for the PortletContext object
Constructors Summary
Methods Summary