struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Pierce <>
Subject RE: <html:text
Date Wed, 22 Jan 2003 06:02:38 GMT

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.
function catchSubmit() {
	return false ;
<html:form.... onsubmit="catchSubmit()">

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

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

-----Original Message-----
From: Gus Delgado []
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.



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

View raw message