aspose file tools*
The moose likes Servlets and the fly likes Calling a RequestDispatcher Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Calling a RequestDispatcher" Watch "Calling a RequestDispatcher" New topic
Author

Calling a RequestDispatcher

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi

Please tell me if there if there is any difference in getting the RequestDispatcher from ServletContext and ServletRequest

Thanks



Save India From Corruption - Anna Hazare.
Mohamed Inayath
Ranch Hand

Joined: Nov 22, 2004
Posts: 124
The only difference I can see is that one cannot specify a path relative to the current resource.
Always it path should start with a forward slash.
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thanks Mohamed .
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Calling a RequestDispatcher