|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.web.servlet.support.RequestContext org.springframework.web.servlet.support.JspAwareRequestContext
public class JspAwareRequestContext
JSP-aware subclass of RequestContext, allowing population of the context from a JSP PageContext.
This context will also detect a JSTL locale attribute in page scope, in addition to the fallback locale strategy provided by the base class.
getFallbackLocale()
Field Summary | |
---|---|
protected static String |
PAGE_SCOPE_SUFFIX
|
Fields inherited from class org.springframework.web.servlet.support.RequestContext |
---|
APPLICATION_SCOPE_SUFFIX, DEFAULT_THEME_NAME, JSTL_LOCALE_ATTRIBUTE, REQUEST_SCOPE_SUFFIX, SESSION_SCOPE_SUFFIX |
Constructor Summary | |
---|---|
JspAwareRequestContext(PageContext pageContext)
Create a new JspAwareRequestContext for the given page context, using the request attributes for Errors retrieval. |
|
JspAwareRequestContext(PageContext pageContext,
Map model)
Create a new JspAwareRequestContext for the given page context, using the given model attributes for Errors retrieval. |
Method Summary | |
---|---|
protected Locale |
getFallbackLocale()
This implementation looks for a JSTL locale attribute in the JSP page scope, falling back to the superclass if not found. |
protected PageContext |
getPageContext()
Return the underlying PageContext. |
protected void |
initContext(PageContext pageContext,
Map model)
Initialize this context with the given page context, using the given model attributes for Errors retrieval. |
Methods inherited from class org.springframework.web.servlet.support.RequestContext |
---|
getBindStatus, getBindStatus, getContextPath, getErrors, getErrors, getFallbackTheme, getLocale, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getModelObject, getQueryString, getRequest, getRequestUri, getServletContext, getTheme, getThemeMessage, getThemeMessage, getThemeMessage, getThemeMessage, getThemeMessage, getThemeMessage, getThemeMessage, getUrlPathHelper, getWebApplicationContext, initContext, isDefaultHtmlEscape, setDefaultHtmlEscape, setUrlPathHelper |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String PAGE_SCOPE_SUFFIX
Constructor Detail |
---|
public JspAwareRequestContext(PageContext pageContext)
pageContext
- current JSP page contextpublic JspAwareRequestContext(PageContext pageContext, Map model)
pageContext
- current JSP page contextmodel
- the model attributes for the current view
(can be null
, using the request attributes for Errors retrieval)Method Detail |
---|
protected void initContext(PageContext pageContext, Map model)
pageContext
- current JSP page contextmodel
- the model attributes for the current view
(can be null
, using the request attributes for Errors retrieval)protected PageContext getPageContext()
protected Locale getFallbackLocale()
getFallbackLocale
in class RequestContext
null
)RequestContext.getFallbackLocale()
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |