FileDocCategorySizeDatePackage
ActionUtils.javaAPI DocExample1178Thu Jun 28 16:14:16 BST 2001com.ora.jsp.servlets

ActionUtils

public class ActionUtils extends Object
This class contains utility methods used by the Action objects in the Project Billboard application.
author
Hans Bergsten, Gefion software
version
1.0

Fields Summary
Constructors Summary
Methods Summary
public voidforward(java.lang.String url, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Forwards to the specified URL.

param
url a relative URL

        RequestDispatcher rd = request.getRequestDispatcher(url);
        rd.forward(request, response);
    
public java.lang.StringgetShowPageURL(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.

param
page a relative URL to the target page, URL encoded if it contains parameters.

        return request.getContextPath() + request.getServletPath() + 
            "?action=showPage&page=" + page;