com.ora.jsp.servlets
Class ShowPageAction

java.lang.Object
  |
  +--com.ora.jsp.servlets.ShowPageAction
All Implemented Interfaces:
Action

public class ShowPageAction
extends java.lang.Object
implements Action

This class displays a JSP page in the Project Billboard application.

Version:
1.0
Author:
Hans Bergsten, Gefion software

Field Summary
private  ActionUtils utils
           
 
Constructor Summary
ShowPageAction()
           
 
Method Summary
 void perform(javax.servlet.http.HttpServlet servlet, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Forwards to the specified JSP page.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

utils

private ActionUtils utils
Constructor Detail

ShowPageAction

public ShowPageAction()
Method Detail

perform

public void perform(javax.servlet.http.HttpServlet servlet,
                    javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws java.io.IOException,
                    javax.servlet.ServletException
Forwards to the specified JSP page. The reason for using this action instead of requesting a JSP page directly is to let the PBDispatcher handle authentication and access control even for JSP pages. Note that nothing prevents a user from requesting a JSP page directly, so this is not a secure way to perform access control. What it does give is automatic redirection to the login page for users that are not properly logged in.

In this application, as in most applications with a servlet as a controller, accessing a JSP page directly doesn't reveal any restricted information however; the JSP page only displays information available in beans, created by the controller.

Specified by:
perform in interface Action