Hi,
I use a JSP to implement a simple redirect.
Code looks like this

<%@page contentType="text/html"
        errorPage="publicError.jsp"%>
<%
    String forward = request.getParameter ("page");
%>
<jsp:forward page="<%= forward %>" />

If the "page" happens to reference a file out of the same directory as the
jsp all the links are incorrect. The "page"s are all relative links eg.
"booking/publicBooking.jsp"
If I use absolute links eg "/booking/publicBooking.jsp" the same thing
happens.

Any clues??

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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

Reply via email to