Difference between request.getRequestDispatcher() and context.getRequestDispatcher()

Difference between request.getRequestDispatcher() and context.getRequestDispatcher()

What is the difference in using request.getRequestDispatcher() and context.getRequestDispatcher()?

View Answers

October 30, 2010 at 3:23 PM

request.getRequestDispatcher(path): In order to create it we need to give the relative path of the resource, context.getRequestDispatcher(path): In order to create it we need to give the absolute path of the resource.









Related Tutorials/Questions & Answers:

Ads