You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Seshagiri V <se...@kensium.com> on 2009/01/16 11:18:28 UTC
Diff action , same action class and diff submit buttons
Hi All,
Here is a snippet of my code in the jsp:
<body>
<s:url id="tempRemovePoPURL" namespace='/p' action="removePoP">
<s:param
name="popDTO.popid"><s:property value="popid" /></s:param>
</s:url>
<s:form namespace='/p' action="editPoP">
<s:submit value="Submit" align="left" />
<button><s:a href="%{tempRemovePoPURL}">
<s:text name="Delete" />
</s:a></button>
</body>
</html>
I have been successful using <s:submit call action editPoP in form tag.
Also clickOn <button call action name editPoP in form tag . it is not
working <s:a href= tag in between <button toag. What happen , why it is
not working .....
Please give me absolutely solution.
Please update solution.
Thanks & Regards
Seshagiri.V
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Diff action , same action class and diff submit buttons
Posted by Lukasz Lenart <lu...@googlemail.com>.
2009/1/16 Seshagiri V <se...@kensium.com>:
> <button><s:a href="%{tempRemovePoPURL}">
> <s:text name="Delete" />
> </s:a></button>
Is not allowed to put href inside button tag, please read some spec
about html and html button [1], if you want to use different action
than entire form, use JavaScript and onclick event for that button to
do that.
[1] http://www.htmlquick.com/reference/tags/button.html
Regards
--
Lukasz
http://www.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org