Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

passing var through included jsp to included jsp  RSS feed

 
Marko Debac
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!