• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

<s:set /> tag problem in Struts2

 
Hrishikesh Maluskar
Ranch Hand
Posts: 115
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have hardcoded the value as Guest in the code mentioned below . How to set this value dynamically through session in Struts2.



 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make your action SessionAware, put the value in the session map, and use the OGNL access to scoped attributes to display it.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic