Try <html:submit/> instead of <html:button/>. See http://www.w3.org/TR/html401/interact/forms.html#buttons for a quick description of the difference between <input type='submit'> and <input type='button'>. (While you're there, read the whole page. It's filled with good information on HTML form submission.)
-- Jeff On Mon, 21 Mar 2005 14:35:31 +0800, Yen <[EMAIL PROTECTED]> wrote: > When I hit on the <enter> key, it wont submit the form unless I use the > mouse to click on the button. I tried with both method, it doesnt work. > Unless I put both codes together, and it will work.. > any idea? > > Method 1 > <input type="text" name="fullName" value="Enter Name Here" > onFocus="javascript:clickme();"/> > <input type="button" class="btn2" value="<bean:message > key="common.button.search"/>" > onclick="javascript:doSubmitForm('showList')"/> > > Method 2 > <html:text property="fullName" value="Enter Name Here" > onFocus="javascript:clickme();"/> > <html:button property="action" > onclick="javascript:doSubmitForm('showList1')"> > <bean:message key="common.button.search"/> > </html:button> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Jeff Beal Webmedx, Inc. Pittsburgh, PA USA --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]