I have one more question about this, if I define two <s:forms> 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 <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



      

Reply via email to