aspose file tools*
The moose likes Servlets and the fly likes Forwarding request out side the web application using RequestDispatcher Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Forwarding request out side the web application using RequestDispatcher" Watch "Forwarding request out side the web application using RequestDispatcher" New topic
Author

Forwarding request out side the web application using RequestDispatcher

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 755
can i forward request outside my application using RequestDispatcher ??? If Yes How ?


here it will take ralative path...that is somewhere from my .war file.


And in this case it will start from the room of my web application...


than how can i forward a request outside my web application like..



???


Jigar Naik


Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

You can't, if you want to send the user to a resource outside of your app server, use response.sendRedirect.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Forwarding request out side the web application using RequestDispatcher