This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread 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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Similar Threads
Typical browser problems covered by JSF 2.0, The Complete Reference?
why struts why not servlets?
struts 2 forms
what is the different between struts classis and struts action framework ?
Setting up JDBC for Struts 1.2