Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

<s:set /> tag problem in Struts2

 
Hrishikesh Maluskar
Ranch Hand
Posts: 115
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic