Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session variable in presentation layer

 
Shraga van Shufel
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I would like to access a session variable from the JSP page.
I saw that I can check for the existence of that variable using <logic resent parameter="myvariable">
but how can I actually write it ??
thanks in advance
/Shraga.
 
Shraga van Shufel
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I manage to find it out and I am posting it, so maybe it could help others.
when you use the logic tag you can enter run time expression as a value.
so to compare a bean peoperty to a session variable use
<logic:equal name="mybean" propery="myproperty" value="<%=request.getParameter("myparameter") %>">
some nice logic
</logic:equal>
Hope it helps
/Shraga.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic