You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Omar Ngarigari <ng...@yahoo.com> on 2013/06/05 18:51:47 UTC
How to submit a form with enter key
Hello,
I am not able to submit a form using "enter key" from the keyboard. The form is as follow:
<s:form action="trackAction" name="myForm" method="post" validate="true" enctype="multipart/form-data">
<table align="center" border="9" width="85%" cellpadding="6"
cellspacing="0" >
<TR>
<TD align="center" colspan="2" bgcolor='#eeeeee'><FONT
FACE="Helvetica" SIZE="large" COLOR="000066"><B><s:text name='title' /></B>
</FONT>
</TD>
</TR>
<tr>
<td align="left">
<s:textfield
id="trackingId"
name="trackingId"
onchange="checkNumber(track)" />
</td>
</tr>
<tr>
<td ALIGN="CENTER" colspan="2" >
<s:submit id="submit" name="submit" value="NEXT" action="fikeAction" />
</tr>
</table>
<br/>
</s:form>
Re: How to submit a form with enter key
Posted by Maurizio Cucchiara <mc...@apache.org>.
I think this is a matter of how the input is rendered (hence HTML).
Could you paste the generated html output (you can use the Apache
Paste Bucket [1]) ?
[1] http://apaste.info/
Twitter :http://www.twitter.com/m_cucchiara
G+ :https://plus.google.com/107903711540963855921
Linkedin :http://www.linkedin.com/in/mauriziocucchiara
VisualizeMe: http://vizualize.me/maurizio.cucchiara?r=maurizio.cucchiara
Maurizio Cucchiara
On 5 June 2013 18:51, Omar Ngarigari <ng...@yahoo.com> wrote:
>
> Hello,
>
> I am not able to submit a form using "enter key" from the keyboard. The form is as follow:
> <s:form action="trackAction" name="myForm" method="post" validate="true" enctype="multipart/form-data">
>
> <table align="center" border="9" width="85%" cellpadding="6"
> cellspacing="0" >
>
> <TR>
> <TD align="center" colspan="2" bgcolor='#eeeeee'><FONT
> FACE="Helvetica" SIZE="large" COLOR="000066"><B><s:text name='title' /></B>
> </FONT>
> </TD>
> </TR>
>
> <tr>
> <td align="left">
> <s:textfield
> id="trackingId"
> name="trackingId"
> onchange="checkNumber(track)" />
> </td>
> </tr>
>
> <tr>
>
> <td ALIGN="CENTER" colspan="2" >
> <s:submit id="submit" name="submit" value="NEXT" action="fikeAction" />
>
> </tr>
> </table>
>
> <br/>
>
> </s:form>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org