| java.lang.Object org.springframework.web.servlet.support.RequestContext org.springframework.web.servlet.support.JspAwareRequestContext
JspAwareRequestContext | public class JspAwareRequestContext extends RequestContext (Code) | | 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.
author: Juergen Hoeller since: 1.1.4 See Also: JspAwareRequestContext.getFallbackLocale |
Constructor Summary | |
public | JspAwareRequestContext(PageContext pageContext) Create a new JspAwareRequestContext for the given page context,
using the request attributes for Errors retrieval. | public | 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. |
PAGE_SCOPE_SUFFIX | final protected static String PAGE_SCOPE_SUFFIX(Code) | | |
JspAwareRequestContext | public JspAwareRequestContext(PageContext pageContext)(Code) | | Create a new JspAwareRequestContext for the given page context,
using the request attributes for Errors retrieval.
Parameters: pageContext - current JSP page context |
JspAwareRequestContext | public JspAwareRequestContext(PageContext pageContext, Map model)(Code) | | Create a new JspAwareRequestContext for the given page context,
using the given model attributes for Errors retrieval.
Parameters: pageContext - current JSP page context Parameters: model - the model attributes for the current view(can be null , using the request attributes for Errors retrieval) |
getFallbackLocale | protected Locale getFallbackLocale()(Code) | | This implementation looks for a JSTL locale attribute in the
JSP page scope, falling back to the superclass if not found.
See Also: RequestContext.getFallbackLocale |
getPageContext | protected PageContext getPageContext()(Code) | | Return the underlying PageContext.
Only intended for cooperating classes in this package.
|
initContext | protected void initContext(PageContext pageContext, Map model)(Code) | | Initialize this context with the given page context,
using the given model attributes for Errors retrieval.
Parameters: pageContext - current JSP page context Parameters: model - the model attributes for the current view(can be null , using the request attributes for Errors retrieval) |
Methods inherited from org.springframework.web.servlet.support.RequestContext | public BindStatus getBindStatus(String path) throws IllegalStateException(Code)(Java Doc) public BindStatus getBindStatus(String path, boolean htmlEscape) throws IllegalStateException(Code)(Java Doc) public String getContextPath()(Code)(Java Doc) public Errors getErrors(String name)(Code)(Java Doc) public Errors getErrors(String name, boolean htmlEscape)(Code)(Java Doc) protected Locale getFallbackLocale()(Code)(Java Doc) protected Theme getFallbackTheme()(Code)(Java Doc) final public Locale getLocale()(Code)(Java Doc) public String getMessage(String code, String defaultMessage)(Code)(Java Doc) public String getMessage(String code, Object[] args, String defaultMessage)(Code)(Java Doc) public String getMessage(String code, List args, String defaultMessage)(Code)(Java Doc) public String getMessage(String code, Object[] args, String defaultMessage, boolean htmlEscape)(Code)(Java Doc) public String getMessage(String code) throws NoSuchMessageException(Code)(Java Doc) public String getMessage(String code, Object[] args) throws NoSuchMessageException(Code)(Java Doc) public String getMessage(String code, List args) throws NoSuchMessageException(Code)(Java Doc) public String getMessage(String code, Object[] args, boolean htmlEscape) throws NoSuchMessageException(Code)(Java Doc) public String getMessage(MessageSourceResolvable resolvable) throws NoSuchMessageException(Code)(Java Doc) public String getMessage(MessageSourceResolvable resolvable, boolean htmlEscape) throws NoSuchMessageException(Code)(Java Doc) protected Object getModelObject(String modelName)(Code)(Java Doc) public String getQueryString()(Code)(Java Doc) final protected HttpServletRequest getRequest()(Code)(Java Doc) public String getRequestUri()(Code)(Java Doc) final protected ServletContext getServletContext()(Code)(Java Doc) final public Theme getTheme()(Code)(Java Doc) public String getThemeMessage(String code, String defaultMessage)(Code)(Java Doc) public String getThemeMessage(String code, Object[] args, String defaultMessage)(Code)(Java Doc) public String getThemeMessage(String code, List args, String defaultMessage)(Code)(Java Doc) public String getThemeMessage(String code) throws NoSuchMessageException(Code)(Java Doc) public String getThemeMessage(String code, Object[] args) throws NoSuchMessageException(Code)(Java Doc) public String getThemeMessage(String code, List args) throws NoSuchMessageException(Code)(Java Doc) public String getThemeMessage(MessageSourceResolvable resolvable) throws NoSuchMessageException(Code)(Java Doc) public UrlPathHelper getUrlPathHelper()(Code)(Java Doc) final public WebApplicationContext getWebApplicationContext()(Code)(Java Doc) protected void initContext(HttpServletRequest request, ServletContext servletContext, Map model)(Code)(Java Doc) public boolean isDefaultHtmlEscape()(Code)(Java Doc) public void setDefaultHtmlEscape(boolean defaultHtmlEscape)(Code)(Java Doc) public void setUrlPathHelper(UrlPathHelper urlPathHelper)(Code)(Java Doc)
|
|
|