Hello,
I am establishing a connection to an AS400 in a
servlet by the following:
try{
holder = new ConnectionHolder
DriverManager.getConnection("jdbc:as400://NWRABR02/GWDRTR;naming=sql;errors=full;extended
dynamic=true;date format=iso;package
library=GWDRTR;prompt=false",username,password));
session.putValue("servletapp.connection", holder);
}
catch(SQLException e)
{
res.sendRedirect"http://mahtanjg/complaintsys/noas400act.htm");
}
Now, is there any way by which I could let the user
know whether the username is correct and password is
wrong or vice-versa? Any way by which I can find out
if the user has an account on the AS400 or not, if
yes give him an opportunity to try to login again and
if not let the user know that there is no such account?
The account is the user's account on the AS400, if the
user enters the username correct and password wrong
for three times, the account is disabled on the
AS/400, which can lead to other complications of
getting the administrator to reset the account. Any
solutions for this other then having a separate table
for username and password?
Appreciate it.
_________________________________________________________
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