This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes RequestDispatcher!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: RequestDispatcher!!!
 
It's not a secret anymore!