tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brook Monroe <Brook.Mon...@kineticsusa.com>
Subject RE: JSP path relative to servlet?
Date Thu, 11 Apr 2002 20:10:39 GMT
Cool...I'll check that ASAP.  (Had to focus on different project for the
afternoon...)

-----Original Message-----
From: rsequeira@transentric.com [mailto:rsequeira@transentric.com]
Sent: Thursday, April 11, 2002 3:36 PM
To: Tomcat Users List
Subject: Re: JSP path relative to servlet?



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>

--
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