Reputation: 7594
What is the main difference in using request.getRequestDispatcher() and context.getRequestDispatcher()?
Upvotes: 0
Views: 799
Reputation: 597
In request.getRequestDispatcher(path) in order to create it we need to give the relative path of the resource. But in resourcecontext.getRequestDispatcher(path) in order to create it we need to give the absolute path of the resource.
Upvotes: 1