You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Peter Kellner <pe...@PeterKellner.net> on 2001/07/13 22:22:41 UTC

html:button / event confusion

I have a simple form with some fields on it (referencing a bean)
and a submit and cancel button.  That works fine.

When the submit fails, I put up another button inside a logic tag
that has the syntax:


<html:button property="btnInform"
onclick="resentConfirmationMail('noparam')"
value="Resend Confirmation to Email Entered"  >
</html:button>

	<SCRIPT>
	  <!--
	  function resentConfirmationMail(s) {
	     <%  boolean bo = logonForm.resendConfirmationRequest();  %>
    }
    -->
	</SCRIPT>

When the user presses this button, I want just the onclick code execute and
I
want a round trip to the server without out any extra validation of my
normal
code. (OK, validation would be OK also)

Thanks.