File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Oct 26, 2002
Sep 27, 2003 16:27:00
i found that requestdispatcher can be obtained from both request object and servletContext. what is the difference in getting from one over the other?
Joined: Aug 18, 2003
Sep 27, 2003 19:37:00
You can pass a relative path to the getRequestDispatcher() method of request object. It will evaluate the path relative to the path of the request. But that is not possible with ServletContext.
I agree. Here's the link:
difference between RequestDispatcher from a ServletRequest and from a ServletContex
What is the diff between a RequestDispatcher object obtained from Request & Context
to do a forward in servelt
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015