This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes Forwarding a request to another servlet in a different WEB-APP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Forwarding a request to another servlet in a different WEB-APP" Watch "Forwarding a request to another servlet in a different WEB-APP" New topic
Author

Forwarding a request to another servlet in a different WEB-APP

Alok Pota
Ranch Hand

Joined: Mar 07, 2001
Posts: 185
Can this be done?
Forwarding a request from one servlet in one web-app (.war file) to another servlet in another (.war) file?
Scott Ramsey
Greenhorn

Joined: Jun 28, 2001
Posts: 16
Yep. See ServletContext.getRequestDispatcher(). Matter of fact, you should also be able to use the context's getNamedDispatcher() as well.
http://java.sun.com/products/servlet/2.3/javadoc/index.html
Hope that helps.


Scott<br />-----------------<br />SCJP, SCJD, SCWCD<br />XML, UML, WLS6.0
 
Have you checked out Aspose?
 
subject: Forwarding a request to another servlet in a different WEB-APP
 
jQuery in Action, 3rd edition