aspose file tools
The moose likes Servlets and the fly likes RequestDispatcher!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "RequestDispatcher!!!" Watch "RequestDispatcher!!!" New topic
Author

RequestDispatcher!!!

Brian Smith
Ranch Hand

Joined: Oct 26, 2002
Posts: 232
hi folks,
i found that requestdispatcher can be obtained from both request object and servletContext. what is the difference in getting from one over the other?
thanks.
Sainudheen Mydeen
Ranch Hand

Joined: Aug 18, 2003
Posts: 218
Hi
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.
Thanks
Sainudheen
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: RequestDispatcher!!!
 
Similar Threads
to do a forward in servelt
RequestDispatcher doubt
What is the diff between a RequestDispatcher object obtained from Request & Context
RequestDispatcher
difference between RequestDispatcher from a ServletRequest and from a ServletContex