"Yandle, Nigel" wrote:
>
> Hi,
>
> I'm using <jsp:forward page="<%=request.getRequestURI()%>/> within my page
> to redirect back to the same page. This works fine under NT but I get a
> page-not-found message from the exact same page under UNIX-Solaris.
>
> Any ideas?,
I don't think the reason for the problem is NT vs. Unix, rather a difference
between the JSP containers (one buggy, one correct).
The request.getRequestURI() returns the complete URI, i.e. the complete
path from the web server's document root down to the current page. But
<jsp:forward> needs a context relative path, i.e. a path that doesn't
include the URI path prefix for the application. To get the context relative
path in a JSP page, use request.getServletPath() instead.
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets