Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP forward or include?

 
Med Shabe
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1072
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Would you turn that thing down? I'm controlling a mind here! Look ... look at the tiny ad ...
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!