<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 action="ChangeThisUsingJavaScript">). Zarar On Fri, Feb 27, 2009 at 2:54 PM, Leena Borle <lsbo...@gmail.com> 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: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org