tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Baker <raschar...@yahoo.com>
Subject Re: sendRedirect not working correctly
Date Fri, 04 Oct 2002 20:25:36 GMT

--- Jared Reeve <jaawohl@yahoo.com> wrote:
> 
> 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).  Any suggestions
> 

I assume that you are calling sendRedirect() in a
servlet? If so then why not use "MyServlet"? You are
already at "/MyApp/servlet/". Is it a jsp in "/MyApp"?
Then try "servlet/MyApp".


=====
rascharles@yahoo.com
http://www.charleshbaker.com/~chb/
Hacking is a "Good Thing!"
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message