Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Forwarding request out side the web application using RequestDispatcher

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..



???
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't, if you want to send the user to a resource outside of your app server, use response.sendRedirect.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic