wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Forwarding a request to another servlet in a different WEB-APP
 
Similar Threads
absolute URL path problem in jsp:forward ... tag
Passing Request
Servlets and Database Connection
How to save the servlet response to a file !
difference between Jsp forward and sendRedirect