• 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

RequestDispatcher forward method handling

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic