public abstract class

RequestContextAwareTag

extends TagSupport
java.lang.Object
   ↳ TagSupport
     ↳ org.springframework.web.servlet.tags.RequestContextAwareTag
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

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.

Summary

Constants
String REQUEST_CONTEXT_PAGE_ATTRIBUTE javax.servlet.jsp.PageContext attribute for the page-level RequestContext instance.
Fields
protected final Log logger Logger available to subclasses
Public Constructors
RequestContextAwareTag()
Public Methods
void doCatch(Throwable throwable)
void doFinally()
final int doStartTag()
Create and expose the current RequestContext.
Protected Methods
abstract int doStartTagInternal()
Called by doStartTag to perform the actual work.
final RequestContext getRequestContext()
Return the current RequestContext.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String REQUEST_CONTEXT_PAGE_ATTRIBUTE

javax.servlet.jsp.PageContext attribute for the page-level RequestContext instance.

Constant Value: "org.springframework.web.servlet.tags.REQUEST_CONTEXT"

Fields

protected final Log logger

Logger available to subclasses

Public Constructors

public RequestContextAwareTag ()

Public Methods

public void doCatch (Throwable throwable)

Throws
Throwable

public void doFinally ()

public final int doStartTag ()

Create and expose the current RequestContext. Delegates to doStartTagInternal() for actual work.

Throws
JspException

Protected Methods

protected abstract int doStartTagInternal ()

Called by doStartTag to perform the actual work.

Returns
  • same as TagSupport.doStartTag
Throws
Exception any exception, any checked one other than a JspException gets wrapped in a JspException by doStartTag
See Also
  • javax.servlet.jsp.tagext.TagSupport#doStartTag

protected final RequestContext getRequestContext ()

Return the current RequestContext.