BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

validate user against oracle database

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder DB Swing
View previous topic :: View next topic  
Author Message
tom
Guest





PostPosted: Tue Aug 02, 2005 9:39 pm    Post subject: validate user against oracle database Reply with quote



Hi,

How can I create a logon screen to validate user name and password on
Oracle database before loading the main application?

Thanks,

Tom


Back to top
Kevin Dean [TeamB]
Guest





PostPosted: Tue Aug 02, 2005 11:44 pm    Post subject: Re: validate user against oracle database Reply with quote



tom wrote:

Quote:
How can I create a logon screen to validate user name and password
on Oracle database before loading the main application?

If by that you mean you want to use the Oracle authentication
mechanism, then you can create a dialog that prompts for user name and
password.

Collect those parameters, then insert them into the JDBC URL in a
central Database object using the setConnection() method.

Create a simple QueryDataSet with the query "SELECT NULL FROM DUAL" and
execute it. If the query succeeds, the user name and password are
correct and the user may proceed. You can then continue to use the
same Database object for all subsequent operations.

--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder DB Swing All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.