# com.bea.portlet.jsp
PortletJspBase Class

public abstract class PortletJspBase
extends `Object`
implements `HttpJspPage`, `Servlet`

A base class for JSP pages included within portlets conforming to the Java portlet API.

This base class ensures that the following variables are automatically availaPortletble in the JSP:

`portletRequest`: An object implementing the `javax.portlet.PortletRequest` interface.
`renderResponse`: An object implementing the `javax.portlet.RenderResponse` interface.
`portletConfig`: An object implementing the `javax.portlet.PortletConfig` interface.

Portlet JSP pages could either extend this class explicitly as in `<%@page extends="com.bea.portlet.jsp.PortletJspBase"%>`, or all JSP pages in a web app extend this class automatically by specifying the following in weblogic.xml.

        <jsp-descriptor>
           <jsp-param>
              <param-name>superclass</param-name>
              <param-value>com.bea.portlet.jsp.PortletJspBase</param-value>
           </jsp-param>
        </jsp-descriptor>

Related Topics

`RenderRequest`
`RenderResponse`
`PortletConfig`

Hierarchy
  `Object`
  `PortletJspBase`

All Implemented Interfaces
  `HttpJspPage`, `JspPage`, `Servlet`

## Field Summary

`protected `PortletConfig`` | `portletConfig` PortletConfig
`protected `RenderRequest`` | `renderRequest` RenderRequest
`protected `RenderResponse`` | `renderResponse` RenderResponse
`protected `ServletConfig`` | `servletConfig` ServletConfig

## Constructor Summary

PortletJspBase()

## Method Summary

`public abstract void` | `_jspService`(`HttpServletRequest` rq, `HttpServletResponse` rp)
`public final void` | `destroy`()
`public `ServletConfig`` | `getServletConfig`()
`public `String`` | `getServletInfo`()
`public final void` | `init`(`ServletConfig` config)
`public void` | `jspDestroy`()
`public void` | `jspInit`()
`public final void` | `service`(`ServletRequest` request, `ServletResponse` response)

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `javax.servlet.jsp.`HttpJspPage``
`_jspService`

Methods from interface `javax.servlet.jsp.`JspPage``
`jspDestroy, jspInit`

Methods from interface `javax.servlet.`Servlet``
`destroy, getServletConfig, getServletInfo, init, service`

## Field Detail

### portletConfig

    protected PortletConfig portletConfig

### renderRequest

    protected RenderRequest renderRequest

### renderResponse

    protected RenderResponse renderResponse

### servletConfig

    protected ServletConfig servletConfig

## Constructor Detail

### PortletJspBase

    public PortletJspBase()

## Method Detail

### _jspService(HttpServletRequest, HttpServletResponse) Method

    public abstract void _jspService(HttpServletRequest rq,
                                     HttpServletResponse rp)
         throws ServletException, IOException

#### Exceptions

``ServletException``
``IOException``

### destroy() Method

    public final void destroy()

### getServletConfig() Method

    public ServletConfig getServletConfig()

### getServletInfo() Method

    public String getServletInfo()

### init(ServletConfig) Method

    public final void init(ServletConfig config)

### jspDestroy() Method

    public void jspDestroy()

### jspInit() Method

    public void jspInit()

### service(ServletRequest, ServletResponse) Method

    public final void service(ServletRequest request,
                              ServletResponse response)
         throws ServletException, IOException

#### Exceptions

``ServletException``
``IOException``