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 <[EMAIL PROTECTED]> on 04/11/2002 02:02:33 PM
Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
To: 'Tomcat Users List' <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>