Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need help in <s:if>

 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using strut2.And want if session value='CyberQ' then Home should print otherwise blank.
I did like this.But its now working.
Please help me where i am wrong


 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you mean to say it's *not* working?

Are you sure there's a bean in the session named "loginDetails"? Does it have a "role" getter? Is its value "CyberQ"? You can also try using the equals() method in the "test" attribute's OGNL expression.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic