org.jboss.portal.core.servlet.jsp
Class PortalJsp

java.lang.Object
  extended by org.jboss.portal.core.servlet.jsp.PortalJsp

public abstract class PortalJsp
extends java.lang.Object

Any JSP page using the JBoss library should extend that class. It is done by adding the following line at the top of the JSP <%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>

Author:
Thomas Heute $Revision: 6865 $

Field Summary
static java.lang.ThreadLocal contextStack
          Stack of context, needed by expression language static methods
static java.lang.String CTX_REQUEST
          Key for context attribute in the portlet request.
static Logger logger
          To log JSP related information
static java.lang.ThreadLocal request
          HttpServletRequest so that it can be accessed in expression language static methods
 
Constructor Summary
PortalJsp()
           
 
Method Summary
abstract  void _jspService(HttpServletRequest arg0, HttpServletResponse arg1)
          HttpJspPage implementation
 void destroy()
          HttpJspPage implementation
 ServletConfig getServletConfig()
          HttpJspPage implementation
 java.lang.String getServletInfo()
          HttpJspPage implementation
 void init(ServletConfig config)
          HttpJspPage implementation
 void jspDestroy()
          HttpJspPage implementation
 void jspInit()
          HttpJspPage implementation
protected  void log(java.lang.String msg)
          For Jasper which seems to want a log method in the generated JSP.
 void service(ServletRequest request, ServletResponse response)
          HttpJspPage implementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CTX_REQUEST

public static final java.lang.String CTX_REQUEST
Key for context attribute in the portlet request.

See Also:
Constant Field Values

request

public static final java.lang.ThreadLocal request
HttpServletRequest so that it can be accessed in expression language static methods


contextStack

public static final java.lang.ThreadLocal contextStack
Stack of context, needed by expression language static methods


logger

public static Logger logger
To log JSP related information

Constructor Detail

PortalJsp

public PortalJsp()
Method Detail

_jspService

public abstract void _jspService(HttpServletRequest arg0,
                                 HttpServletResponse arg1)
                          throws ServletException,
                                 java.io.IOException
HttpJspPage implementation

Throws:
ServletException
java.io.IOException
See Also:
javax.servlet.jsp.HttpJspPage#_jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

jspInit

public void jspInit()
HttpJspPage implementation

See Also:
javax.servlet.jsp.JspPage#jspInit()

jspDestroy

public void jspDestroy()
HttpJspPage implementation

See Also:
javax.servlet.jsp.JspPage#jspDestroy()

init

public void init(ServletConfig config)
          throws ServletException
HttpJspPage implementation

Throws:
ServletException
See Also:
javax.servlet.Servlet#init(javax.servlet.ServletConfig)

getServletConfig

public ServletConfig getServletConfig()
HttpJspPage implementation

See Also:
javax.servlet.Servlet#getServletConfig()

service

public void service(ServletRequest request,
                    ServletResponse response)
             throws ServletException,
                    java.io.IOException
HttpJspPage implementation

Throws:
ServletException
java.io.IOException
See Also:
javax.servlet.Servlet#service(javax.servlet.ServletRequest,javax.servlet.ServletResponse)

getServletInfo

public java.lang.String getServletInfo()
HttpJspPage implementation

See Also:
javax.servlet.Servlet#getServletInfo()

destroy

public void destroy()
HttpJspPage implementation

See Also:
javax.servlet.Servlet#destroy()

log

protected final void log(java.lang.String msg)
For Jasper which seems to want a log method in the generated JSP.