Sorry but I have no time to include the source code...
My suggestion is to do it by Javascript:
1) intercept the submit event of the form (onSubmit...)
2) write a method (which is called on the onSubmit) and test what element of
the form has the focus
3) if the focus is on the password input box, call the form.submit method.
However, it could be a problem if the user fills the password field for
first, and the "username" field last :)
Bye
Fab
> -----Messaggio originale-----
> Da: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]Per conto di AYHAN
> DEMIRCI (IT-TMO)
> Inviato: giovedi, 24 maggio 2001 15.53
> A: [EMAIL PROTECTED]
> Oggetto: call next jsp by pushing enter ?
>
>
> Hello
>
> I have a login jsp that takes username and password.
> I only can call the next jsp by submit button In form tags.
>
> My question is
> i want to call the next jsp if the user push enter on password
> text box (after entering its pass)
>
> Does anybody have an idea?
>
> thanks...
> Ayhan
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html