On Thu, 2003-02-13 at 19:26, Clement, Stephen wrote:
> 
> I have a an html:text that is populate by my form instance, when I enter
> text and hit return, the form is populated and sent back to my action class
> instance which seems to be the way it is supposed to work.  
> 
> I don't want the html:text to submit (that is send the form back to the
> action instance) if I hit return in it.  
> 
> How do I have an html:text in my jsp page that accepts input but doesn't
> submit if I return in it?

Not really a Struts problem...
If you really want to implement this usability "feature", use JavaScript
and write a method which checks whether the return key has been pressed.

http://www.google.com/search?q=javascript+return+key
should give you some hints.

HTH,
        Michael.

-- 
Michael Hanisch                                      [EMAIL PROTECTED]
Red Hat - RH Interchange Inc., Orleansstrasse 4,  D-81669 Munich/Germany
phone: +49 (0)89 206058-53                      fax: +49 (0)89 206058-88


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to