• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Apache/Tomcat Problem with jsp:forward and dyn. params.

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
I am using jsp:forward. That work�s with a static relative URL.
But as I am using URLencoding I want to insert a URL as expression.
I get the following error:
Apache Tomcat/4.0.4 _ HTTP Status 404 - ...
The requested resource (/relog.jsp;jsessionid=78979...) is not available.
I am encoding like this:

I am worried about the slash before the relog.jsp in the error report. Where does it come from?
Moreover I want to insert dynamic parameters. That doesn�t work neither.
I respected the specifications of the following document:
How to use <jsp:forward>
Someone knows what is wrong?
[ March 25, 2003: Message edited by: Robert Jaeger ]
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've duplicated your error, and it's definately the jsessionid that is causing the trouble. With cookies enabled, it all works fine.

don't worry about the slash, that's how Tomcat finds resources (relative to the application root)

As for dynamic parameters, try:
This is a very quick demo using sample.jsp in the examples webapp. (forwarding would work similarly).

In the data.jsp page then, both one=1 and foo=jsp/dates/date.jsp?one=1 work.
[ March 25, 2003: Message edited by: Mike Curwen ]
 
Do you pee on your compost? Does this tiny ad?
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic