wood burning stoves 2.0*
The moose likes JSP and the fly likes JSP forward or include? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP forward or include?" Watch "JSP forward or include?" New topic
Author

JSP forward or include?

Med Shabe
Ranch Hand

Joined: May 08, 2001
Posts: 84
Hi,
I'm trying to get rid of the frameset trap. How would I target two different destinations, an html and a servlet say, from a jsp passing a request object to the servlet?
Thanks much.
ersin eser
Ranch Hand

Joined: Feb 22, 2001
Posts: 1072
When you use forward the invoker will not have an access to request any longer ( request & the control will be forwarded to destination ). If you use include, request object thus the control will return to the invoker that calls include after the destination is done with processing the request.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JSP forward or include?
 
Similar Threads
Scriptlets -> Time and Space Complexity
Do you have elegant way of nullpointer exceptions
difference
is servlet and jsp same?
attributes and listener hfsj question 10