You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jorge Ruben Macias Lopez <jm...@protel.net.mx> on 2002/11/21 20:08:49 UTC

RE: Problem with LookupDispatchAction and pressing ENTER in a tex t

I think there's an even handler in the <html:form> tag which lets you assign
a javascript action to be executed when the form is submitted.

-----Mensaje original-----
De: JuanPedro.DeAndres@atosodsorigin.com
[mailto:JuanPedro.DeAndres@atosodsorigin.com]
Enviado el: Jueves, 21 de Noviembre de 2002 01:07 p.m.
Para: struts-user@jakarta.apache.org
Asunto: Problem with LookupDispatchAction and pressing ENTER in a text


Pressing  'Enter' inside a text form, the form is submited, 
and the 'method' parameter  that is the name of all my submit buttons,
takes no value,  and  so the LookupDispatchAction fails

Any solution?

Thanks.

Example



--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: RE: Problem with LookupDispatchAction and pressing ENTER in a tex t

Posted by Ju...@atosodsorigin.com.
Yes, but how I knows if it was a button or a text what send the submit event.
And in case I know that it was a button, which one.



<html:submit property='method'  onclick="doSomethind()">
  doSomething
</html:submit>

<html:submit property='method'  onClick="doOtherthing()">
 doOtherThing
</html:submit>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>