• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RequestDispatcher!!!

 
Brian Smith
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi folks,
i found that requestdispatcher can be obtained from both request object and servletContext. what is the difference in getting from one over the other?
thanks.
 
Sainudheen Mydeen
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
You can pass a relative path to the getRequestDispatcher() method of request object. It will evaluate the path relative to the path of the request. But that is not possible with ServletContext.
Thanks
Sainudheen
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic