Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

about requestDispatcher  RSS feed

 
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: 9608
36
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...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!