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

about requestDispatcher

 
pratapsiva sivakumar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can some one explain me with code the usage of requestDispatcher?
 
Ankit Garg
Sheriff
Posts: 9580
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read this tutorial and see if it is clear for you. Basically RequestDispatcher is used to let some other servlet/jsp produce some content in the response. A forward is made using request dispatcher to let a different servlet/jsp to send the complete output for the request. So if servlet A forwards request to JSP Z then the client will see the output of JSP Z. An include is made using request dispatcher to let a different servlet/jsp add some content to the response. So if servlet A includes JSP Z then the client will see the output of both servlet A and JSP Z...
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic