Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Application level variables in Struts 1.1  RSS feed

 
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!