This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

context dispatcher vs requestdispatcher

ani jadhao
Ranch Hand
Posts: 62
  • 0
  • 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?
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic