Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RequestDispatcher forward method handling

 
Satyanarayana Chelikani
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I think i have a problem with requestdispatcher and forward method as we are migrating our project from tomcat 4.1 to tomcat 5.5.

The code written works fine with tomcat 4.1 but with tomcat 5.5 after the we are calling the getRequestDispatcher(path).forward(req,res) method the requested jsp should be displayed on the browser, which is not happening.

Can you guide me in this regard as I couldn't pinpoint the exact error location.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is happening?
Have you looked at the tomcat logs to see if something is going wrong?

I, personally, didn't notice any differences in requestDispatcher handling between 4.1 and 5x and I rely on it a lot.
If nothing is showing up in your logs, maybe you can put together a small code example that shows this problem and post it.
 
Satyanarayana Chelikani
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ben,

Thanks for your reply.

There no error logged in the log file. It is waiting for the server response until the time out period with out any errors and once the session gets timed out the page is displayed

Another option is that if I use an include instead of forward and using flushBuffer to commit the work its working fine.

Can you guide me with the possibilities of the errors.

Thanks

Satya
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now would be a good time for you to post the code that performs the forward.
Without seeing what you've got it would be hard for anyone to figure out what's going wrong with your app.
 
Satyanarayana Chelikani
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The code for handling the forward message is as follows:




Thanks

Satya

[ UD: Added CODE tags. Please UseCodeTags whenever you post code of any length. The code is just unreadable otherwise. ]
[ February 06, 2008: Message edited by: Ulf Dittmer ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic