This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP forward or include?" Watch "JSP forward or include?" New topic

JSP forward or include?

Med Shabe
Ranch Hand

Joined: May 08, 2001
Posts: 84
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.
Don't get me started about those stupid light bulbs.
subject: JSP forward or include?
Similar Threads
is servlet and jsp same?
attributes and listener hfsj question 10
Do you have elegant way of nullpointer exceptions
Scriptlets -> Time and Space Complexity