This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 757
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Forwarding request out side the web application using RequestDispatcher