File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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.
I agree. Here's the link:
subject: JSP forward or include?
It's not a secret anymore!