• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Diff b/w getNamedDispatcher() and getRequestDispatcher()

 
Senthil Kumar
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
can we use the getNamedDispatcher() to forward the request into a jsp file.
 
Reza Rav.
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I remember NO
 
Sunder Ganapathy
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can execute either a Servlet or a JSP using getNamedDispatcher. The name must match one of the <servlet-name> values set up in DD.
 
sarang bharambe
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sunder,

Can you explain how we can use getNamedDispatcher() in case of JSP's with an example??
The name must match one of the <servlet-name> values set up in DD.


How we can specify a servlet-name to a JSP in DD??

Regards,
sarang
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic