DEVFYI - Developer Resource - FYI

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

JSP Interview Questions and Answers


(Continued from previous question...)

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

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.

(Continued on next question...)

Other Interview Questions