What is the difference between the getRequestDispatcher(String path) method of javax.servlet.ServletRequest interface and javax.servlet.ServletContext interface?
There is a method getContext(string) in servletContext which can be used to get the foreign context. so we can use the method getRequestDispatcher to get the RequestDispatcher for resources in foreign context. But when we use the request.gerRequestDiapatcher method we get the RequestDispatcher of the current context only.
So the servletContext requestDispatcher may be helpful in some scenarios.
Regards,
Sudipta Kumar Laha
Beware the other head of science - it bites! Nibble on this message:
a bit of art, as a gift, that will fit in a stocking