Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

scriptlet works, scoped variable does not  RSS feed

 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JSP page that I can make work using evil scriptlets and can not get to work using modern JSTL EL expressions.
I'm sure its a trivial cockpit error, but I can't figure it out.



Any pointers, corrections, help, greatly appreciated.
 
Balu Sadhasivam
Ranch Hand
Posts: 874
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Pat,


there is no such thing as "scope" , if its from session it should be ${sessionScope.struct}

Other valid scope are
applicationScope
pageScope
requestScope
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, that did the trick
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!