First, you may not need to do anything, depending on your needs. The
applet you see is an automatic retry by the ToolBox, and will retry the
getConnection() statement. In fact, you could just use that as your
user/password input, unless you need the user data for some other purpose.
If you really don't want this behavior, look at the "JDBC Properties."
The link is on the as400JDBCDriver javadoc page or go to
jt400/doc/javadoc/JDBCProperties.html. )
Look at the 'user', 'password' and especially, 'prompt' properties.
Joe Sam
-----Original Message-----
From: Jeetandra Mahtani <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, April 13, 1999 9:57 AM
Subject: Login problem...
>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=fu
ll;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
___________________________________________________________________________
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