• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding Request Dispatcher

 
Damodara Reddy
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any difference between getting a RequestDispatcher
using getRequestDispatcher(String uri) which is in ServletContext interface
and getRequestDispatcher(String uri)which is in ServletRequest.

I know the one difference... that is uri takes the path relative to the Context path in the first method, and in second method it takes either Context or request. Apart from this is there any difference...in the way RequestDispatcher works...?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Was the entry in the Servlet FAQ not helpful?
 
Damodara Reddy
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In servlet FAQ's I found the same difference which I mentioned above.
Any Other difference apart from that?
Kindly let me know.

Regards
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The best place to go for "difference between" questions is the API.
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/RequestDispatcher.html

There are 3 links under the "See Also" section of this page that should have the answers to your question.
 
Damodara Reddy
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ben Souther for your valuable reply .

Regards
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic