Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat 5.5 Migration - Request Dispatcher issue

 
Sivaraman Lakshmanan
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • 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.
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic