jQuery in Action, 3rd edition
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: JSP forward or include?
It's not a secret anymore!