public abstract class BaseJSPPanelApp extends BasePanelApp
PanelApp
with JSP support
to minimize the effort required to implement this interface.
To implement a JSP application, this class should be extended and getJspPath()
should be implemented, which returns a path for the main JSP
application view in the current servlet context. The servlet context should
also be set using setServletContext(ServletContext)
, which uses the
appropriate servlet context for JSP pages. If the servlet context is not set,
include(HttpServletRequest, HttpServletResponse)
will throw a
NullPointerException
.
JSP applications are included within JSP application categories defined by
BaseJSPPanelCategory
implementations.
BasePanelApp
,
PanelApp
groupProvider
Constructor and Description |
---|
BaseJSPPanelApp() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getJspPath() |
boolean |
include(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Returns
true if the application successfully renders. |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
getControlPanelEntry, getGroup, getKey, getLabel, getNotificationsCount, getPortlet, getPortletURL, isShow, setGroupProvider, setPortlet, setUserNotificationEventLocalService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPortletId
public abstract java.lang.String getJspPath()
public boolean include(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
PanelApp
true
if the application successfully renders.include
in interface PanelApp
include
in class BasePanelApp
request
- the servlet request used in the rendering processresponse
- the servlet response used in the rendering processtrue
if the application successfully renders;
false
otherwisejava.io.IOException
- if an IO exception occurredpublic void setServletContext(javax.servlet.ServletContext servletContext)