Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFS Q12 Page 219 on RequestDispatcher...

 
Gaurav Sahni
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sami Sayeed
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic