This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

error "Status 404" on redirect  RSS feed

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Author
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!