public class PortletJstlView extends JstlView
exposeHelpers(HttpServletRequest)
} method for details.useInclude(HttpServletRequest, HttpServletResponse)
method for more detailsDEFAULT_CONTENT_TYPE
logger
PATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE
Constructor and Description |
---|
PortletJstlView() |
Modifier and Type | Method and Description |
---|---|
protected void |
exposeHelpers(HttpServletRequest request)
If the specified request is associated with Apache Pluto, then this method takes no action.
|
protected boolean |
useInclude(HttpServletRequest request,
HttpServletResponse response)
If the specified request is associated with Apache Pluto and the RESOURCE_PHASE of the portlet lifecycle, then
this method returns
true in order to force PortletMVC4Spring to dispatch using "include" rather than
"forward". |
initServletContext
getRequestDispatcher, isContextRequired, prepareForRendering, renderMergedOutputModel, setAlwaysInclude, setPreventDispatchLoop
afterPropertiesSet, checkResource, getUrl, isUrlRequired, setUrl, toString
addStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, formatViewName, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getRequestToExpose, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setRequestContextAttribute, setResponseContentType, writeToResponse
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, setServletContext
getApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContext
protected void exposeHelpers(HttpServletRequest request) throws Exception
JstlView.exposeHelpers(HttpServletRequest)
superclass method calls JstlUtils.exposeLocalizationContext(HttpServletRequest, MessageSource)
which is incompatible with Apache Pluto. For all other portlet containers, this method simply calls through to
the superclass method.exposeHelpers
in class JstlView
Exception
protected boolean useInclude(HttpServletRequest request, HttpServletResponse response)
true
in order to force PortletMVC4Spring to dispatch using "include" rather than
"forward". This is because Apache Pluto is not able to render JSPs using the RESOURCE_PHASE using a "forward" --
it can only do it with an "include". For all other portlet containers and types of requests, this method simply
calls through to the superclass method.useInclude
in class InternalResourceView
Copyright © 2019 Liferay, Inc.. All rights reserved.