login page using jsp servlrt with mysql database?

login page using jsp servlrt with mysql database?

Description: example:total users are 3.each use have username and password save in mysql database table login. After successfully login user1 see only index page,if user2 login then he see only visiter page and so on. please gine me any suggession. Thanks.......

View Answers

February 11, 2013 at 4:59 PM

hi friend,

According to the problem discussed above you should first get the user name and password from the form and fetch the username and password record from the database table then match both the form value and the database record if it returns true then use RequestDispatcher in your controller and forward to the required page available in the same context.

For detail tutorial you may go through the following link may this will be helpful for you

Login Authentication using Bean and Servlet In JSP

Ads









Related Tutorials/Questions & Answers:
login page using jsp servlrt with mysql database?
login page with mysql using jsp
Advertisements
code for user registration page and login page of emails using jsp
jsp login page
using ajax and jsp (struts) to login and remain on same page.
JSP LOGIN Page
jsp using include & with mysql
login page php mysql example
basic login and registration web page using jsp and servlet without using bean .....
how to upload an image from a jsp page to a mysql database table using jsp
JSP Login Page Question
need help....how to connect and disconnect multiple databases(databases created in mysql) using java and my sql
add cookies to login form in jsp by using struts2.0 framework
problem in inserting data in databases created in netbeans using jsp..
how to retrieve text and images from mysql database and show on html page using jsp servlet
how to fetch image from mysql using jsp
problem in inserting data in databases created in ecplise using jsp
problem in inserting data in databases created in ecplise using jsp
Redirect to same jsp page on successful login
upload csv to mysql db using jsp upload
create login page using data from text file
How to Create Login/ Registration Form using PHP and MYSQL
login and registration form using servlet and authentication through mysql
Image upload in mysql database using jsp servlet
how to connect jsp with sql database by netbeans in a login page?
how to connect jsp with sql database by netbeans in a login page?
how to connect jsp with sql database by netbeans in a login page?
jsp page authentication panel using jsp/servlet?
Upgrading databases between MySQL 5.0 to MySQL 5.5
Jdbc Login Page Validation using Combobox
Jdbc Login Page Validation using Combobox

Ads