Not really a Struts issue, but write a Javascript function that is called
onSubmit in the form, and set up an function on the submit button that
performs a submit onclick, e.g.
...
<script>
function catchSubmit() {
        return false ;
}
</script>
...
<html:form.... onsubmit="catchSubmit()">
...

        <html:submit onClick="document.myform.submit()"/>
</html:form>

Or you could just accept that some browsers work this way.

-----Original Message-----
From: Gus Delgado [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 22 January 2003 8:09 AM
To: Struts Users Mailing List
Subject: <html:text


>
>
>I notice that in all of the <html:text inside of a html:form, if you hit
enter the action will be call, is there any way that I can turn that off so
that the only way the action can be call is if the user hits the "submit"
button?  thanks.
>

-Gus

>  
>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to