tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rseque...@transentric.com
Subject Re: JSP path relative to servlet?
Date Thu, 11 Apr 2002 19:36:14 GMT

If "MySeatMap" is your Context root, then you do not need to include that.
String  target  = "/seatmap.jsp";
rd = getServletContext().getRequestDispatcher(target);

should suffice.

RS






Brook Monroe <Brook.Monroe@kineticsusa.com> on 04/11/2002 02:02:33 PM

Please respond to "Tomcat Users List" <tomcat-user@jakarta.apache.org>

To:   'Tomcat Users List' <tomcat-user@jakarta.apache.org>
cc:

Subject:  JSP path relative to servlet?

Now that I've got my servlet's XML parsing largely debugged, it's time to
see some output.

The problem is this (mucho code removed):

           String  target  = "/MySeatMap/seatmap.jsp";
           .
           .
           .
           rd = getServletContext().getRequestDispatcher(target);
           rd.forward(request,response);

I get 404'd, with the error that the JSP file can't be located.  What am I
doing wrong?  (rd is declared, I just left that out.)

jbm!


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>









--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message