aspose file tools*
The moose likes Struts and the fly likes Application level variables in Struts 1.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Application level variables in Struts 1.1" Watch "Application level variables in Struts 1.1" New topic
Author

Application level variables in Struts 1.1

Sam Drake
Ranch Hand

Joined: Jun 05, 2003
Posts: 33
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

Joined: Apr 02, 2004
Posts: 3
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Application level variables in Struts 1.1