This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
Struts Design and Programming by Budi Kurniawan
disable the browser backward button in jboss server
To the author: Topics that are not related to the exam
Turning off Validation
struts