org.apache.struts.faces.util
Class StrutsContext

java.lang.Object
  extended by org.apache.struts.faces.util.StrutsContext

public class StrutsContext
extends Object

Context bean providing accessors for the Struts related request, session, and application scope objects reated to this request. Note that this bean's methods will trigger exceptions unless there is a FacesContext instance for this request.


Constructor Summary
StrutsContext()
           
 
Method Summary
 javax.faces.event.ActionEvent getActionEvent()
          Return the ActionEvent for the current request (if any).
 org.apache.struts.action.ActionMapping getActionMapping()
          Return the ActionMapping for the current request (if any).
 org.apache.struts.action.ActionMessages getActionMessages()
          Return the ActionMessages instance containing application error messages for this request (if any).
 org.apache.struts.action.ActionServlet getActionServlet()
          Return the ActionServlet instance for this web application.
 Throwable getException()
          Return the exception that caused one of the Struts custom tags to report a JspException (if any).
 javax.faces.context.ExternalContext getExternalContext()
          Return the ExternalContext for the current request.
 javax.faces.context.FacesContext getFacesContext()
          Return the FacesContext for the current request.
 Locale getLocale()
          Return the Locale stored in the current user's session (if any) for Struts based localization.
 org.apache.struts.util.MessageResources getMessageResources()
          Return the MessageResources instance for the application module that is processing this request (if any).
 org.apache.struts.config.ModuleConfig getModuleConfig()
          Return the ModuleConfig for the application module to which this request has been assigned (if any).
 boolean isCancelled()
          Return true if a Boolean true value has been stored in the request attribute indicating that this request has been cancelled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrutsContext

public StrutsContext()
Method Detail

getActionEvent

public javax.faces.event.ActionEvent getActionEvent()

Return the ActionEvent for the current request (if any).


getActionMapping

public org.apache.struts.action.ActionMapping getActionMapping()

Return the ActionMapping for the current request (if any).


getActionMessages

public org.apache.struts.action.ActionMessages getActionMessages()

Return the ActionMessages instance containing application error messages for this request (if any).


getActionServlet

public org.apache.struts.action.ActionServlet getActionServlet()

Return the ActionServlet instance for this web application.


isCancelled

public boolean isCancelled()

Return true if a Boolean true value has been stored in the request attribute indicating that this request has been cancelled.


getException

public Throwable getException()

Return the exception that caused one of the Struts custom tags to report a JspException (if any).


getExternalContext

public javax.faces.context.ExternalContext getExternalContext()

Return the ExternalContext for the current request.


getFacesContext

public javax.faces.context.FacesContext getFacesContext()

Return the FacesContext for the current request.


getLocale

public Locale getLocale()

Return the Locale stored in the current user's session (if any) for Struts based localization.


getMessageResources

public org.apache.struts.util.MessageResources getMessageResources()

Return the MessageResources instance for the application module that is processing this request (if any).


getModuleConfig

public org.apache.struts.config.ModuleConfig getModuleConfig()

Return the ModuleConfig for the application module to which this request has been assigned (if any).



Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.