File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is the difference b/w forward() and include() in RequestDispatcher

 
Dhineshkumar raj
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference b/w forward() and include() methods in RequestDispatcher class

Can any one tell me the clear definition an differences

DhineshKumar R
 
Joe Harry
Ranch Hand
Posts: 10045
3
Eclipse IDE Mac PPC Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
forward () is used to forward the page to another page that you specify, with the same set of request and response references, whereas an include () includes the content of the page that you want to include.

what is not clear here?
 
vidyasagar sree
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Dhineshkumar raj:
what is the difference b/w forward() and include() methods in RequestDispatcher class

Can any one tell me the clear definition an differences

DhineshKumar R


in forward: if request and response transfer from one page to another, it will not return to previous page.
in include:if request and response transfer from one page to another, it will return to previous page by taking all information from second page .
 
Bosun Bello
Ranch Hand
Posts: 1510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This topic has been "beaten to death" here. Search the forums. You will find lots of discussion on it. It's also in the FAQ I think.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic