*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 753
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
 
Similar Threads
Communication between Two web application Problem.
getRequestDispatcher
RequestDispatcher
Request Resource not available JSP
HttpSession in JSP