This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes JSP and the fly likes error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "error "Status 404" on redirect" Watch "error "Status 404" on redirect" New topic
Author

error "Status 404" on redirect

dar
Ranch Hand

Joined: Nov 08, 2001
Posts: 45
Hi.
I have two *.jsp files (first.jsp and second.jsp) in the same directory and I need redirect to second.jsp from first.jsp.
I try "forward()" and "sendRedirect()" methods.

I get this error message.

Tell me please, what's wrong?
I use tomcat 4.0.3.
Thank You.
[ July 10, 2002: Message edited by: dajac chison ]
chanoch wiggers
Author
Ranch Hand

Joined: May 24, 2001
Posts: 245
if you are doing this within a web application, putting the / before the name of the name of the page will redirect it to look in the ROOT directory, so the browser will be looking at
http://localhost/index1.jsp even though you have loaded
http://localhost/myapp/index2.jsp
try removing the forward slash


chanoch<p><a href="http://www.amazon.com/exec/obidos/ASIN/1861007736/" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error "Status 404" on redirect