i think u are not getting the context from the application did u check that? -J
-----Original Message----- From: Tim Moore [mailto:[EMAIL PROTECTED]] Sent: Friday, October 04, 2002 1:32 PM To: Tomcat Users List Subject: RE: sendRedirect not working correctly > -----Original Message----- > From: Jared Reeve [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 04, 2002 4:20 PM > To: [EMAIL PROTECTED] > Subject: sendRedirect not working correctly > > > > Using Apache Tomcat/4.1.12 > > I have my application under the webapps directory. When I do > a sendRedirect to "/servlet/MyServlet" I get an HTTP Status > 404 - The requested resource (/servlet/MyServlet) is not > available. The correct path should be "/MyApp/servlet/MyServlet". > > It appears it is not prepending the Root URI (MyApp). It's not supposed to. > Any suggestions response.sendRedirect(request.getContextPath() + "/servlet/MyServlet"); -- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW / 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>