GeeCON Prague 2014*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HFS Q12 Page 219 on RequestDispatcher... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "HFS Q12 Page 219 on RequestDispatcher..." Watch "HFS Q12 Page 219 on RequestDispatcher..." New topic
Author

HFS Q12 Page 219 on RequestDispatcher...

Gaurav Sahni
Ranch Hand

Joined: Sep 03, 2003
Posts: 56
hello CattlePeople,
Question 12 says: Which statements about RequestDispatcher are true (where applicable, assume the RequestDispatcher was not obtained via a call to getNamedDispatcher() ?

what is this "NamedDispatcher" ? and why is this assumption ?
could not get the details anywhere in the book ...

Regards,
Gaurav


To know recursion, you must first know recursion...
Sami Sayeed
Ranch Hand

Joined: Oct 05, 2004
Posts: 39
Hi,

Named Dispatcher is you could a request dispatcher based on teh name of the servlet.

ServletContext.getNamedDispatcher("nameofservlet");
you dont need to mention the urlPattern in the method
 
GeeCON Prague 2014
 
subject: HFS Q12 Page 219 on RequestDispatcher...