jakarta.servlet.jsp.PageContext.
This context will detect a JSTL locale attribute in page/request/session/application scope, in addition to the fallback locale strategy provided by the base class.
getFallbackLocale
| Modifier and Type | Class and Description |
|---|---|
| private static class | JspAwareRequestContext.
Inner class that isolates the JSTL dependency. |
| Modifier and Type | Field and Description |
|---|---|
| private final PageContext |
| Access | Constructor and Description |
|---|---|
| public | JspAwareRequestContext(PageContext
current JSP page context pageContext)Create a new JspAwareRequestContext for the given page context, using the request attributes for Errors retrieval. |
| public | JspAwareRequestContext(PageContext
current JSP page context pageContext, Map<String, Object> the model attributes for the current view
(can be model)null, using the request attributes for Errors retrieval)Create a new JspAwareRequestContext for the given page context, using the given model attributes for Errors retrieval. |
| Modifier and Type | Method and Description |
|---|---|
| protected Locale | getFallbackLocale()
Overrides org. This implementation checks for a JSTL locale attribute in page,
request, session or application scope; if not found, returns the
|
| protected TimeZone | getFallbackTimeZone()
Overrides org. This implementation checks for a JSTL time zone attribute in page,
request, session or application scope; if not found, returns |
| protected final PageContext |
| pageContext | back to summary |
|---|---|
| private final PageContext pageContext | |
| JspAwareRequestContext | back to summary |
|---|---|
| public JspAwareRequestContext(PageContext pageContext) Create a new JspAwareRequestContext for the given page context, using the request attributes for Errors retrieval.
| |
| JspAwareRequestContext | back to summary |
|---|---|
| public JspAwareRequestContext(PageContext pageContext, Map<String, Object> model) Create a new JspAwareRequestContext for the given page context, using the given model attributes for Errors retrieval.
| |
| getFallbackLocale | back to summary |
|---|---|
| protected Locale getFallbackLocale() Overrides org. This implementation checks for a JSTL locale attribute in page,
request, session or application scope; if not found, returns the
| |
| getFallbackTimeZone | back to summary |
|---|---|
| protected TimeZone getFallbackTimeZone() Overrides org. This implementation checks for a JSTL time zone attribute in page,
request, session or application scope; if not found, returns
| |
| getPageContext | back to summary |
|---|---|
| protected final PageContext getPageContext() Return the underlying PageContext. Only intended for cooperating classes in this package. | |
| Access | Constructor and Description |
|---|---|
| private |
| JstlPageLocaleResolver | back to summary |
|---|---|
| private JstlPageLocaleResolver() | |
| getJstlLocale | back to summary |
|---|---|
public static Locale getJstlLocale(PageContext pageContext)
| |
| getJstlTimeZone | back to summary |
|---|---|
public static TimeZone getJstlTimeZone(PageContext pageContext)
| |