So you mean to say that there should not be any class variable used? But even though there are more then one thread executing execute method then? There is a possibility that for one thread 2 parameters will be filled and for other thread remaing 3. So all parameters are having different values from two different users while it stores for only one user.
I appologize if I am going to very basic! -Jignesh On Monday 10 May 2004 18:36, Daniel Perry wrote: > Each request to the same action subclass uses the same object. The method > is called passing all necessary parameters to it. Therefore you should not > use any class variables, only local variables. > > Ie, a MyAction class is created once, and for each request to it, it's > method is called: > > public ActionForward execute( > ActionMapping mapping, > ActionForm form, > HttpServletRequest request, > HttpServletResponse response) > > This object is retained throughout application lifecycle, and reused for > each request. > > Daniel. > > -----Original Message----- > From: Jignesh Patel [mailto:[EMAIL PROTECTED] > Sent: 10 May 2004 14:04 > To: Struts Users Mailing List; Geeta Ramani > Subject: Re: concurrency in struts > > > Hi Geeta, > Can you elaborate more? > > -Jignesh > > On Monday 10 May 2004 18:18, Geeta Ramani wrote: > > Jignesh: > > > > The "execute" method of the Action class includes (among others) as > > params the request, response objects of each user.. That I believe is the > > key..:) > > > > Regards, > > Geeta > > > > > -----Original Message----- > > > From: Jignesh Patel [mailto:[EMAIL PROTECTED] > > > Sent: Monday, May 10, 2004 8:54 AM > > > To: Struts Users Mailing List > > > Subject: concurrency in struts > > > > > > > > > On Monday 10 May 2004 17:21, Jignesh Patel wrote: > > > I am just wondering, how concurrent request will be handled by single > > > Action class. Because for many form objects(as there are thousands of > > > browser running with jsp forms) and there is only one action class. > > > > > > -- > > > Jignesh Patel > > > Project Leader> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > -- > Jignesh Patel > Project Leader > ____________________________________________________________ > Bang Software Technolgy Pvt. Ltd. > > > (E) [EMAIL PROTECTED] > > (T) 091 484 3942132 > > > B-4, Smart Business Centre, > Infopark, SDF IT Building, > Kusumagiri P.O.,Kakkanad, > Kochi - 682030, > Kerala, > India. > > Information contained in this transmission to the named addressee, > including > any attachments thereto, should be > considered the proprietary and confidential information of the sender. As > a > condition for viewing the information, > the sender agrees to keep the information confidential, to refrain from > disclosing the information, directly or > indirectly, and to refrain from any actions that would constitute or > facilitate unauthorized access to the > information without express permission from the sender. The recipient also > acknowledges and agrees to respect > sender's intellectual property rights in and to the information. If the > recipient of this transmission is not > the named addressee, the recipient should immediately notify the sender > and destroy the information transmitted > without making any copy or distribution thereof. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Jignesh Patel Project Leader ____________________________________________________________ Bang Software Technolgy Pvt. Ltd. (E) [EMAIL PROTECTED] (T) 091 484 3942132 B-4, Smart Business Centre, Infopark, SDF IT Building, Kusumagiri P.O.,Kakkanad, Kochi - 682030, Kerala, India. Information contained in this transmission to the named addressee, including any attachments thereto, should be considered the proprietary and confidential information of the sender. As a condition for viewing the information, the sender agrees to keep the information confidential, to refrain from disclosing the information, directly or indirectly, and to refrain from any actions that would constitute or facilitate unauthorized access to the information without express permission from the sender. The recipient also acknowledges and agrees to respect sender's intellectual property rights in and to the information. If the recipient of this transmission is not the named addressee, the recipient should immediately notify the sender and destroy the information transmitted without making any copy or distribution thereof. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]