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 and Description |
---|
StrutsContext() |
Modifier and Type | Method and Description |
---|---|
javax.faces.event.ActionEvent |
getActionEvent()
Return the
ActionEvent for the current request
(if any). |
ActionMapping |
getActionMapping()
Return the
ActionMapping for the current
request (if any). |
ActionMessages |
getActionMessages()
Return the
ActionMessages instance containing
application error messages for this request (if any). |
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. |
MessageResources |
getMessageResources()
Return the
MessageResources instance for the
application module that is processing this request (if any). |
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. |
public javax.faces.event.ActionEvent getActionEvent()
Return the ActionEvent
for the current request
(if any).
public ActionMapping getActionMapping()
Return the ActionMapping
for the current
request (if any).
public ActionMessages getActionMessages()
Return the ActionMessages
instance containing
application error messages for this request (if any).
public ActionServlet getActionServlet()
Return the ActionServlet
instance for this
web application.
public boolean isCancelled()
Return true
if a Boolean true value has been stored
in the request attribute indicating that this request has been
cancelled.
public Throwable getException()
Return the exception that caused one of the Struts custom tags to report a JspException (if any).
public javax.faces.context.ExternalContext getExternalContext()
Return the ExternalContext
for the current request.
public javax.faces.context.FacesContext getFacesContext()
Return the FacesContext
for the current request.
public Locale getLocale()
Return the Locale
stored in the current user's
session (if any) for Struts based localization.
public MessageResources getMessageResources()
Return the MessageResources
instance for the
application module that is processing this request (if any).
public ModuleConfig getModuleConfig()
Return the ModuleConfig
for the application module
to which this request has been assigned (if any).
Copyright © 2000–2016 Apache Software Foundation. All rights reserved.