This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

diff between forwad & include  RSS feed

 
Kather Basha
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any one tell me in detail about the major diff between forwarding a request to a.jsp page or include the same a.jsp page :roll:
 
vidya archana
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hiii,

the main differrence is that if you use include then you can do with the request object after the include code .but this is not the case for forward
u cannot do anything after with the request object since the request has already been forwarded to the requested resource
 
Vijayendra V Rao
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can read this.
 
Afroz Ahmed
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

It is like.

I: The current JSP
YOU: The included/forwarded JSP

include: I am giving this job to you,Do the job and send me the results.I will include them in my program

forward: I am giving this job to you,Do the job,show output and whatever you want.I am not concerned with this now.

 
Kather Basha
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mr.Afroz. Pl keep in touch, i'm having many of these questions which i have been asked while in interview.

Originally posted by Mohd Afroz Ahmed:
Hi,

It is like.

I: The current JSP
YOU: The included/forwarded JSP

include: I am giving this job to you,Do the job and send me the results.I will include them in my program

forward: I am giving this job to you,Do the job,show output and whatever you want.I am not concerned with this now.

 
Vijayendra V Rao
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mohd Afroz Ahmed:
Hi,

It is like.

I: The current JSP
YOU: The included/forwarded JSP

include: I am giving this job to you,Do the job and send me the results.I will include them in my program

forward: I am giving this job to you,Do the job,show output and whatever you want.I am not concerned with this now.



Wow! Point very well made!
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!