com.ora.jsp.servlets
Class ActionUtils

java.lang.Object
  |
  +--com.ora.jsp.servlets.ActionUtils

public class ActionUtils
extends java.lang.Object

This class contains utility methods used by the Action objects in the Project Billboard application.

Version:
1.0
Author:
Hans Bergsten, Gefion software

Constructor Summary
ActionUtils()
           
 
Method Summary
 void forward(java.lang.String url, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Forwards to the specified URL.
 java.lang.String getShowPageURL(javax.servlet.http.HttpServletRequest request, java.lang.String page)
          Returns a URL suitable for redirecting to a JSP page through the controller servlet, as a showPage action.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

ActionUtils

public ActionUtils()
Method Detail

getShowPageURL

public java.lang.String getShowPageURL(javax.servlet.http.HttpServletRequest request,
                                       java.lang.String page)
Returns a URL suitable for redirecting to a JSP page through the controller servlet, as a showPage action.
Parameters:
page - a relative URL to the target page, URL encoded if it contains parameters.

forward

public void forward(java.lang.String url,
                    javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws java.io.IOException,
                    javax.servlet.ServletException
Forwards to the specified URL.
Parameters:
url - a relative URL