Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.struts.faces.util
Class StrutsContext  view StrutsContext download StrutsContext.java

java.lang.Object
  extended byorg.apache.struts.faces.util.StrutsContext

public class StrutsContext
extends java.lang.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.


Field Summary
private  javax.faces.context.ExternalContext econtext
          The ExternalContext for the current request.
private  javax.faces.context.FacesContext fcontext
          The FacesContext for the current 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.
 javax.sql.DataSource getDataSource()
          Return the default DataSource instance for this application (if any).
 java.lang.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.
 java.util.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
 

Field Detail

fcontext

private javax.faces.context.FacesContext fcontext

The FacesContext for the current request.


econtext

private javax.faces.context.ExternalContext econtext

The ExternalContext for the current request.

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.


getDataSource

public javax.sql.DataSource getDataSource()

Return the default DataSource instance for this application (if any).


getException

public java.lang.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 java.util.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).