This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How getNamedDispatcher is used?

 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How ServeltContext().getNamedDispatcher(str) is used.
I am able to understand how it is used.

Thanks
 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
its just like requestdispatcher the only difference is that instead of url mapped to servlet as parameter,we pass servlet name given in DD as argument
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes..as simple as that

but not that, when you do a forward using this method, the request attibutes - java.servlet.http.xxxx_xxxx are not set, where

xxxx_xxx = context_path
query_string

<2 more ....cant remember ... > somone add to this !
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!