This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Servlets and the fly likes Sevlet Request Dispatcher Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Sevlet Request Dispatcher" Watch "Sevlet Request Dispatcher" New topic

Sevlet Request Dispatcher

kanchi panneer

Joined: Mar 23, 2005
Posts: 3
Is it possible to dispatch a request from one servlet(which is in one application ) to another servlet which is in another application?

Possible means kindly give the steps.
Annie Smith
Ranch Hand

Joined: Mar 05, 2005
Posts: 172
Yes. You specify the absolute URL for the other servlet in your request dispatcher.

Cheers!<br /><b>Annie</b>
Bhavin Sanghani
Ranch Hand

Joined: Dec 17, 2003
Posts: 67


Ben Souther

Joined: Dec 11, 2004
Posts: 13410

You can use sendRedirect.
This, of course, won't carry the session and request data with it.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Sevlet Request Dispatcher
It's not a secret anymore!