This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to get Username and Pwd from DB
 
Similar Threads
Using Commons dbcp with MySQL
Where to write Validation
window.open(), window title bar, and the POST method
How to insert data from file excel into DB?
How can we call from a html to portal page?