• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Alok Pota
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic