This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HFS Q12 Page 219 on RequestDispatcher...
 
Similar Threads
sendRedirect
difference between RequestDispatcher from a ServletRequest and from a ServletContex
HTTP Status 500
servlets
How to Jsp in servlet