struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zarar Siddiqi <>
Subject Re: How to specify namespace for s:submit.
Date Sun, 01 Mar 2009 04:17:20 GMT
<s:submit/> submits a <s:form/>.  If you want your two submit buttons
to call two different actions, you'll need two different forms.

If you can't do that then you could have an onclick handler for both
the submit buttons and depending on which one the user clicks, you can
change the action value of the form (<s:form


On Fri, Feb 27, 2009 at 2:54 PM, Leena Borle <> wrote:
> Hi,
>  Probably this questions has been asked before, but could not find answer
> on the list.
>  How do I specify namespace for <s:submit> tag ? I have two buttons in the
> from and both of them call different action from different name space. These
> are not AJAX actions
>  I tries using <s:param name="namespace" ..> and also tried to give just
> action="/namespace1/MyAction". Does not work.
>  Is this technically possible ?
> Thanks
> Leena

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message