Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Use RequestDispatcher to include page content?

 
Chrix Wu
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can i Use RequestDispatcher to include page content?

why not?

there is a question in HFSJ book p810
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes we can use include() method
Here is the examaple

include() method includes the content of a resource (servlet, JSP page, HTML file) in the response. The included servlet cannot change the response status code or set headers; any attempt to make a change is ignored.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic