This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "instance variable  --  Action class  - Struts " Watch "instance variable  --  Action class  - Struts " New topic
Author

instance variable -- Action class - Struts

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1396
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: instance variable -- Action class - Struts
 
It's not a secret anymore!