• 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