Home Answers Viewqa JSP-Interview-Questions Difference between request.getRequestDispatcher() and context.getRequestDispatcher()

 
 


Vijay Kumar
Difference between request.getRequestDispatcher() and context.getRequestDispatcher()
1 Answer(s)      2 years and 7 months ago
Posted in : JSP-Interview Questions

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 Pages:

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.