Hi, I would try to capture ASCII code then provide appropriate action. To capture ASCII code when user hit a key can be handled with Javascript for Netscape and with VB code for Internet explorer.
Hai -----Original Message----- From: randie ursal [mailto:[EMAIL PROTECTED]] Sent: Friday, November 15, 2002 10:19 PM To: [EMAIL PROTECTED] Subject: Re: Using <ENTER> key to submit but this problem only happen when we enter a Japanese characters into the textfield. Dror Matalon wrote: > Hi, > > I'm not sure this 100% related but we ran into something similar. > Different browsers do different things when you hit ENTER. Checking > the HTML spec, it looks like there's no definition of what should > happen. Most browsers handle the ENTER as if you've clicked on > the first button, but some do not. This behaviour, for some reason, > is mostly a problem when you have a single field in your form. > > Our workaround was to assume that the first buttom on the form was > clicked when we got no submit action from the servlet. > > Hope this helps, > > Dror > > > On Sat, Nov 16, 2002 at 10:48:13AM +0800, randie ursal wrote: > >>hi list, >> >> i have a strange problem. >> >> i have a simple form that has a textfield and a submit button. >> >> when i enter a value which is in English into the textfield and >>presses <ENTER> key, everything works fine. but when i use JAPANESE >>characters my SERVLET wasn't able to get any value. >> >> also, when i use the submit button by clicking it, everything works >>fine for both ENGLISH and JAPANESE characters. >> >> does anyone have any idea on what's wrong? >> >> >>thanks. >> >>========================================================================== = >>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff >>JSP-INTEREST". >>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST >>DIGEST". >>Some relevant FAQs on JSP/Servlets can be found at: >> >>http://archives.java.sun.com/jsp-interest.html >>http://java.sun.com/products/jsp/faq.html >>http://www.esperanto.org.nz/jsp/jspfaq.jsp >>http://www.jguru.com/faq/index.jsp >>http://www.jspinsider.com > > > -- > Dror Matalon > Zapatec Inc > 1700 MLK Way > Berkeley, CA 94709 > http://www.zapatec.com > > =========================================================================== > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com > > -- Randie V. Ursal Design Engineering Department NEC Telecom Software Philippines, Inc. office : +63(032) 233-9142 (loc.3119) mobile : +63(0917) 467-8244 email : [EMAIL PROTECTED] =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com