Win a copy of Mesos in Action this week in the Cloud/Virtualizaton 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic