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

Application level variables in Struts 1.1

 
Sam Drake
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Where do I declare an application level variable in the Struts framework? And how do I access it in my action classes?
Thanks,
Sam.
 
Himanshu Shah
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
If u want to use application level variable then u have to take value of that variable in session.Which is used in any action class or where ever u need this.
This is one option that how to access application level variable such as login or user name.
Regards,
Himanshu Shah
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic