New to Stripes, and to JSP.

Suppose I have a page called contact.jsp with the following contents:
-----------------------------
<%...@include file="/WEB-INF/jsp/taglibs.jsp" %>
<%...@page import="net.sourceforge.stripes.action.ForwardResolution"%>

<%
    ForwardResolution forwardResolution = new
ForwardResolution(site.action.LoadPageActionBean.class);
        forwardResolution.addParameter("pageName", "contact");
    forwardResolution.execute(request, response);
%>
-----------------------------

LoadPageActionBean has a default resolution called view()
-----------------------------
        @DefaultHandler
        public Resolution view(){
            content = loadFromDB(pageName);
            getContext().getRequest().setAttribute("content", content);
                return new ForwardResolution("/WEB-INF/jsp/displayPage.jsp");
        }
-----------------------------

displayPage.jsp displays the contents of the page.  This works.  But...

if I have a scriptlet on displayPage.jsp that calls
request.getRequestURI(), it returns "/WEB-INF/jsp/displayPage.jsp"
rather than "contact.jsp".  Is the original URL lurking in one of the
contexts of the latter jsp?  Or is there a context into which I can
stash the URL in the first step so that it will be available in the
third?

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to