Re: [struts 2] Two forms for one action

2008-05-14 Thread Jukka Välimaa
t; Thx, Milan > > > > - Original Message > From: Jukka Välimaa <[EMAIL PROTECTED]> > To: Struts Users Mailing List > Sent: Wednesday, May 14, 2008 7:53:13 AM > Subject: Re: [struts 2] Two forms for one action > > Both forms don't call the same *in

Re: [struts 2] Two forms for one action

2008-05-14 Thread Milan Milanovic
Struts Users Mailing List Sent: Wednesday, May 14, 2008 12:05:06 PM Subject: Re: [struts 2] Two forms for one action Hi, but how my action class is storing objects which are shown in jsp and also it store objects inserted through jsp ? This mean that it have state information ? -- Thx,

Re: [struts 2] Two forms for one action

2008-05-14 Thread Milan Milanovic
nesday, May 14, 2008 7:53:13 AM Subject: Re: [struts 2] Two forms for one action Both forms don't call the same *instance* of the action class. Neither does one form, actually. For each request, Struts 2 uses a different instance of the same class. Once the result is rendered, the action o

Re: [struts 2] Two forms for one action

2008-05-14 Thread Milan Milanovic
nesday, May 14, 2008 7:53:13 AM Subject: Re: [struts 2] Two forms for one action Both forms don't call the same *instance* of the action class. Neither does one form, actually. For each request, Struts 2 uses a different instance of the same class. Once the result is rendered, the action o

Re: [struts 2] Two forms for one action

2008-05-13 Thread Jukka Välimaa
ion class for each form. > > Regards, > Randy Burgess > Sr. Web Applications Developer > Nuvox Communications > > > > > From: Milan Milanovic <[EMAIL PROTECTED]> > > Reply-To: Struts Users Mailing List > > Date: Tue, 13 May 2008 07:58:29 -0700 (PDT)

Re: [struts 2] Two forms for one action

2008-05-13 Thread Jim Kiley
t method. But, how can I define another submit button that > will call > another method of the same action class ? > -- > Thx in advance, Milan > - Original Message > From: Jim Kiley <[EMAIL PROTECTED]> > To: Struts Users Mailing List > Sent: Monday, May 12, 2

Re: [struts 2] Two forms for one action

2008-05-13 Thread Milan Milanovic
advance, Milan - Original Message From: Jim Kiley <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Monday, May 12, 2008 6:15:07 PM Subject: Re: [struts 2] Two forms for one action Milan, I'm not a Struts 1 guy, so this advice might not be useful to you (because you didn&#x

Re: [struts 2] Two forms for one action

2008-05-13 Thread Milan Milanovic
urgess <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Tuesday, May 13, 2008 5:09:19 PM Subject: Re: [struts 2] Two forms for one action They could, if it were me I would have different methods on the action class to handle the different forms if I were to do it this way. Personally I wo

Re: [struts 2] Two forms for one action

2008-05-13 Thread Randy Burgess
vic <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: Tue, 13 May 2008 07:58:29 -0700 (PDT) > To: Struts Users Mailing List > Subject: Re: [struts 2] Two forms for one action > > I have one more question about this, if I define two in one page > would &g

Re: [struts 2] Two forms for one action

2008-05-13 Thread Milan Milanovic
I have one more question about this, if I define two in one page would they work with the same action class ? -- Thx, Milan Milanovic - Original Message From: Jim Kiley <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Monday, May 12, 2008 6:15:07 PM Subject: Re: [struts

Re: [struts 2] Two forms for one action

2008-05-12 Thread Milan Milanovic
which is an array). -- Thx, Milan Milanovic - Original Message From: Jim Kiley <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Monday, May 12, 2008 6:15:07 PM Subject: Re: [struts 2] Two forms for one action Milan, I'm not a Struts 1 guy, so this advice might not be

Re: [struts 2] Two forms for one action

2008-05-12 Thread Jim Kiley
Milan, I'm not a Struts 1 guy, so this advice might not be useful to you (because you didn't say whether this was a Struts 1 or 2 situation). But in my Struts 2 app I have plenty of places where I have multiple buttons each triggering different action methods on the same action class. jk On Mo

Re: [struts 2] Two forms for one action

2008-05-12 Thread Milan Milanovic
Or maybe I should define two submit buttons for the same form and action class ? -- Regards, Milan - Original Message From: Milan Milanovic <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Monday, May 12, 2008 5:57:50 PM Subject: [struts 2] Two forms for one action Hi, I need to