aspose file tools*
The moose likes Object Relational Mapping and the fly likes How to get Username and Pwd from DB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "How to get Username and Pwd from DB" Watch "How to get Username and Pwd from DB" New topic
Author

How to get Username and Pwd from DB

Rajendra Prakash
Ranch Hand

Joined: Sep 10, 2009
Posts: 293
I am new to web application. I want to check username and password entered by user in jsp page ,
available in database or not. Consider am using struts and hibernate. where to write code ,
in Business logic or DAOIMPL . Also just give two lines , how to get username , pwd from db
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You're "considering" using Hibernate, which means you aren't, but want Hibernate code that accesses the DB? Have you looked at the Hibernate tutorials or documentation, or written any test code to try things out?

Moving to ORM.
 
jQuery in Action, 2nd edition
 
subject: How to get Username and Pwd from DB