unable to validate username and password from ms acess database
//this code is not working! please help me to find error.
<%@ page import="java.sql.*" %>
con = DriverManager.getConnection("jdbc:odbc:mydb","","");
ResultSet rs=st.executeQuery("select * from table1 where userid='"+user+"' and pwd='"+pwd+"'");
out.println("welcome " +user);
November 3, 2012 at 4:31 PM
Follow these steps:
1)Go to the start->Control Panel->Administrative Tools-> data sources.
2)Click Add button and select the driver Microsoft Access Driver(*.mdb).
3)After selecting the driver, click finish button.
4)Then give Data Source Name and click ok button.
5)Your DSN will get created.
6) Restart your server and run your jsp/servlet code
Related Tutorials/Questions & Answers:
validating username and password from database
and password from
database Hello sir, i am developing a login page. i want that when i fill data in text fields. it validate
data from database
. if enter data is match from database
. page goes to next page
Acess Record from database.
Record from database
. How to access records from database
and how to display it on view page, with the help of hibernate
how to check username & password from database using jsp
how to check username
& password from database
using jsp Hello,
I have created 1 html page which contain username
& submit button.
in my oracle10G database
already contain table name admin which has name, password
that will validate
usernames and passwords from
. I need help with the validation, so that if the username
match it will continue...=st.executeQuery("select * from
login where username
='"+value1+"' and password
Java Read username, password and port from properties file
Java Read username
and port from
In this section, you will come to know how to read username
and port no from
the properties file and display the data from
. Now to load the data from
unable to get datas from oracle database
to get datas from
oracle database Dear Sir,
I am again struck in my project..
i want to display data from
but i get...=con.prepareStatement("select * from
username and password in servlet
in servlet i'm usng eclipse luna(java programming)
Sevlet and apache tomcat8.0
i need to do a login page
then after login... in:
Please Enter Your User Name:
Please Enter Your Password
encrypt the username and password using PHP
encrypt the username
using PHP How can we encrypt the username
You can use the MySQL PASSWORD
() function to encrypt username
. For example,
unable to connect database in java
to connect database
in java Hello Everyone! i was trying to connect database
with my application by using java but i am unable
i was using this code....
unable to insert data into database
to insert data into database
hello.i have a problem... the eid based on ename and the other is inserting data into database
based... = Database.getConnection();
ps1=con.prepareStatement("select eid from