<s:form action="blah">

<s:submit/>

<s:submit action="blah!foo"/>

</s:form>

On Tue, May 13, 2008 at 11:44 AM, Milan Milanovic <[EMAIL PROTECTED]>
wrote:

> Hi,
> regarding multiple submit buttons for the same form, if I have <s:form
> ...> with
> defined action (which is actually a method name in a action class), then
> my submit
> button calls that 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 <user@struts.apache.org>
> 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'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 <s:submit> buttons
> each
> triggering different action methods on the same action class.
>
> jk
>
>
> On Mon, May 12, 2008 at 12:10 PM, Milan Milanovic <
> [EMAIL PROTECTED]>
> wrote:
>
> > 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 <user@struts.apache.org>
> > Sent: Monday, May 12, 2008 5:57:50 PM
> > Subject: [struts 2] Two forms for one action
> >
> > Hi,
> > I need to have classic master/detail jsp page, so I need actually two
> > forms in a jsp page to works with one action class,
> > one main form that works with main elements of my object (e.g. User
> name,
> > surname,...) for header and another one which works
> > with some list that belongs to my main object (e.g., User.privileges)
> > below such header part. How can I define this ?
> > --
> > Thx, Milan Milanovic
> >
> >
> >
> >
> ____________________________________________________________________________________
> > Be a better friend, newshound, and
> > know-it-all with Yahoo! Mobile.  Try it now.
> > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> >
> >
> >
> >
> ____________________________________________________________________________________
> > Be a better friend, newshound, and
> > know-it-all with Yahoo! Mobile.  Try it now.
> > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> >
>
>
>
> --
> Jim Kiley
> Technical Consultant | Summa
> [p] 412.258.3346 [m] 412.445.1729
> http://www.summa-tech.com
>
>
>
>
>



-- 
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Reply via email to