|
Randerson, I missed this one, but it should work if you just add ;prompt=false to the url like: DriverManager.getConnection("jdbc:as400://iSeriesSystem/apilib;naming=sq l;errors=full;date format=iso;prompt=false", myUserName, myPassword); David Morris >>> randerson@xxxxxxxxxxxxxx 5/4/2004 4:49:11 PM >>> Is there a method to retrieve the password from an AS400JDBCDriver connection? I am using my own panel for the user to enter in the username and password. I pass the values to the connection via. Class.forName("com.ibm.as400.access.AS400JDBCDriver"); iSeriesConnection = DriverManager.getConnection("jdbc:as400://iSeriesSystem/apilib;naming=sq l;errors=full;date format=iso", myUserName, myPassword); However if the username or password is incorrect, the default Login panel appears and allows the user to reenter the values. It appears that I can retrieve the username by iSeriesConnection.getMetaData().getUserName(); Is there a technique to get the password that is entered, so that I can use the value elsewhere in the application? Thanks in advance.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.