File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Servlets and Database Connection
absolute URL path problem in jsp:forward ... tag
How to save the servlet response to a file !
Passing Request
difference between Jsp forward and sendRedirect