aspose file tools
The moose likes JSP and the fly likes passing var through included jsp to included jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "passing var through included jsp to included jsp" Watch "passing var through included jsp to included jsp" New topic
Author

passing var through included jsp to included jsp

Marko Debac
Ranch Hand

Joined: Aug 21, 2006
Posts: 121
Hi,

how can I pass var to 3th jsp, when I have in first setting var, and include 2nd jsp..

1st jsp:


2nd jsp:


3nd jsp:


So, may global question is: how in practice it works - passing var through various jsp (maybe with requesScope, but how)?

And what I can do in my situation?


please help,
Marko
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56232
    
  13

If you do not specify a scope on <c:set>, it defaults to page scope. To make sure that a scoped variable (not a "var") is available throughout the request, use request scope.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: passing var through included jsp to included jsp
 
Similar Threads
Tab Menu
JSTL: remove object from scope
Passing parameter to jsp:include with c:set
passing parameters to included jsp file
using EL in jsp include file