• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat 5.5 Migration - Request Dispatcher issue

 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

We are migrating our application from Tomcat 4.1.2 to Tomcat 5.5. Our application mainly consists of servlets and jsp. After migrating to tomcat 5.5
we are facing a strange issue. In our application we are using request dispatcher to forward to various jsp resources as shown below.



this was working perfectly fine when we were using tomcat 4.1.2 now in tomcat 5.5 we are getting 404 error as the container is looking for the jsp
relative to the servlet path.

I cannot changes the code to correct the path as there are more than 250 occurance which will be a huge effort. I tried writing a servlet filter
to catch the request and do something but the request dispatcher forward is not caught by the filter as this is happening in the server.

I would appreciate if someone could please tell me an easy way to solve this issue without making changes to the existing code.
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you can't change the "code" then change the "path" relative to the servlet path. I mean, move the jsp's relative to the context such as while forwarding, container can find them.
 
reply
    Bookmark Topic Watch Topic
  • New Topic