|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object TagSupport org.springframework.web.servlet.tags.RequestContextAwareTag
public abstract class RequestContextAwareTag
Superclass for all tags that require a RequestContext
.
The RequestContext
instance provides easy access
to current state like the
WebApplicationContext
,
the Locale
, the
Theme
, etc.
Mainly intended for
DispatcherServlet
requests;
will use fallbacks when used outside DispatcherServlet
.
RequestContext
,
DispatcherServlet
Field Summary | |
---|---|
protected Log |
logger
Logger available to subclasses |
static java.lang.String |
REQUEST_CONTEXT_PAGE_ATTRIBUTE
javax.servlet.jsp.PageContext attribute for the
page-level RequestContext instance. |
private RequestContext |
requestContext
|
Constructor Summary | |
---|---|
RequestContextAwareTag()
|
Method Summary | |
---|---|
void |
doCatch(java.lang.Throwable throwable)
|
void |
doFinally()
|
int |
doStartTag()
Create and expose the current RequestContext. |
protected abstract int |
doStartTagInternal()
Called by doStartTag to perform the actual work. |
protected RequestContext |
getRequestContext()
Return the current RequestContext. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String REQUEST_CONTEXT_PAGE_ATTRIBUTE
javax.servlet.jsp.PageContext
attribute for the
page-level RequestContext
instance.
protected final Log logger
private RequestContext requestContext
Constructor Detail |
---|
public RequestContextAwareTag()
Method Detail |
---|
public final int doStartTag() throws JspException
doStartTagInternal()
for actual work.
JspException
REQUEST_CONTEXT_PAGE_ATTRIBUTE
,
JspAwareRequestContext
protected final RequestContext getRequestContext()
protected abstract int doStartTagInternal() throws java.lang.Exception
java.lang.Exception
- any exception, any checked one other than
a JspException gets wrapped in a JspException by doStartTagjavax.servlet.jsp.tagext.TagSupport#doStartTag
public void doCatch(java.lang.Throwable throwable) throws java.lang.Throwable
java.lang.Throwable
public void doFinally()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |