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,
PanelAppgroupProvider| Constructor and Description |
|---|
BaseJSPPanelApp() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.String |
getJspPath() |
boolean |
include(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Returns
true if the application successfully renders. |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
getControlPanelEntry, getGroup, getKey, getLabel, getNotificationsCount, getPortlet, getPortletURL, isShow, setGroupProvider, setPortlet, setPortletLocalService, setUserNotificationEventLocalServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPortletIdpublic abstract java.lang.String getJspPath()
public boolean include(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws java.io.IOException
PanelApptrue if the application successfully renders.include in interface PanelAppinclude in class BasePanelApphttpServletRequest - the servlet request used in the rendering
processhttpServletResponse - 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)