Hello,
I have written a login servlet that takes the input
from a form ( two fields - username and password )
and establishes a connection to the database using
the com.ibm.as400.access.AS400JDBCDriver().
c =
java.sql.DriverManager.getConnection("jdbc:as400://xyz;naming=sql;errors=full;extended
dynamic=true;date format=iso;package
ibrary=abc",username,password);
Now when the username and password are correct, I am
taken to the next page. If the username and password
are incorrect, a small applet windows comes up on the
screen asking to enter the username and password. How
do I prevent this from happening? If the username and
password are incorrect, could I catch an exception
and in that exception redirect the user to the login
page again?
Appreciate it for any suggestions/ideas?
Thanks,
JGM





_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

___________________________________________________________________________
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

Reply via email to