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

Q

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

✍: Guest

A

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.

2013-08-12, 2137👍, 0💬