struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zarar Siddiqi <zar...@gmail.com>
Subject Re: How to specify namespace for s:submit.
Date Sun, 01 Mar 2009 20:01:43 GMT
> <s:submit> can submit to different actions, I'm just not sure if the
> namespace can be specified.

How? Wouldn't the Struts tag just render a form tag with two different
submit buttons and clicking on either one will invoke the action
defined in the form tag? I don't see how this is possible without the
use of JavaScript?


On Sun, Mar 1, 2009 at 8:52 AM, Dave Newton <newton.dave@yahoo.com> wrote:
> Zarar Siddiqi wrote:
>>
>> <s:submit/> submits a <s:form/>.  If you want your two submit buttons
>> to call two different actions, you'll need two different forms.
>
> <s:submit> can submit to different actions, I'm just not sure if the
> namespace can be specified.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message