Win a copy of Practical SVG this week in the HTML/CSS/JavaScript 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: 9593
34
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...
 
It's weird that we cook bacon and bake cookies. Eat this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!