Save This Page
Home » struts-2.0.11.2-src » org.apache » struts2 » interceptor » [javadoc | source]
org.apache.struts2.interceptor
public interface: ServletRequestAware [javadoc | source]

All Known Implementing Classes:
    JVMAction

All Actions that want to have access to the servlet request object must implement this interface.

This interface is only relevant if the Action is used in a servlet environment.

Note that using this interface makes the Action tied to a servlet environment, so it should be avoided if possible since things like unit testing will become more difficult.
Method from org.apache.struts2.interceptor.ServletRequestAware Summary:
setServletRequest
Method from org.apache.struts2.interceptor.ServletRequestAware Detail:
 public  void setServletRequest(HttpServletRequest request)
    Sets the HTTP request object in implementing classes.