This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Struts Doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Doubt " Watch "Struts Doubt " New topic
Author

Struts Doubt

lakshman kumaran
Greenhorn

Joined: Aug 16, 2011
Posts: 13
Hi,
3 team members we are working in different module but we are calling the same struts framework (struts 1.1) at the same time . i dont know how many instances will be created . Can any body tell me .


Thanks in advance
Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 498

lakshman kumaran wrote:Hi,
3 team members we are working in different module but we are calling the same struts framework (struts 1.1) at the same time . i dont know how many instances will be created . Can any body tell me .


Thanks in advance


What 'instance' do you mean?


PM Me If You Want to get Urgent Help on Java Programming
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Source Struts 1.x documentation : Action

Actions must be programmed in a thread-safe manner, because the controller will share the same instance for multiple simultaneous requests. This means you should design with the following items in mind:

Instance and static variables MUST NOT be used to store information related to the state of a particular request. They MAY be used to share global resources across requests for the same action.
Access to other resources (JavaBeans, session variables, etc.) MUST be synchronized if those resources require protection. (Generally, however, resource classes should be designed to provide their own protection where necessary.

ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts Doubt