wood burning stoves 2.0*
The moose likes Struts and the fly likes instance variable  --  Action class  - Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "instance variable  --  Action class  - Struts " Watch "instance variable  --  Action class  - Struts " New topic

instance variable -- Action class - Struts

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1368
How can i define instance variable within Action class in Struts ?
Sheldon Fernandes
Ranch Hand

Joined: Aug 18, 2004
Posts: 157
The same way you define instance variables in any class. However, note that if you use instance variables in an action class, you will need to worry about multi-threaded access.

Action Class Design Guidelines
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: instance variable -- Action class - Struts
Similar Threads
Websphere Portal Server - User's seeing each other's data!
static variable and GC
multiple instance of Action class
struts 1.X Action vs Actionmappings
Passing value with multiple actions in same form