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
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

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

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.
I agree. Here's the link:
subject: How to get Username and Pwd from DB
Similar Threads
How can we call from a html to portal page?, window title bar, and the POST method
Where to write Validation
Using Commons dbcp with MySQL
How to insert data from file excel into DB?