I found the answer on the http://developer.java.sun.com/developer/index.jshtml site.
I wanted to know this because a client of me found it verry irritating that when he accidently pushed return the form was submitted while not al of the form field were used.
I know u can use form validation but, i that this was the easiest way.
Thank u both for reacting.