Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

context dispatcher vs requestdispatcher

 
ani jadhao
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All ,

I am surrounded by a thought about dispatchers.
we know that the difference between request and context Requestdispatcher is , of path i.e. context accepts only paths starting from / i.e. relative to context of root.
But Requestdispatcher of request accepts paths starting from / as well as ./ i.e. relative to root and relative to request .

So my question is , why there are two facilities provided and where they can fit if want to use specifically? Cant we do, using ONLY request.getrequestdispatcher method as it accepts both relative to request and root paths?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic