login page using jsp servlrt with mysql database?

Ads
 

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.
login page php mysql example
jsp login page
Using javabeans to connect mySQL database on a jsp page - JSP-Interview Questions
JSP LOGIN Page
basic login and registration web page using jsp and servlet without using bean .....
need help....how to connect and disconnect multiple databases(databases created in mysql) using java and my sql
JSP Login Page Question
jsp using include & with mysql
how to upload an image from a jsp page to a mysql database table using jsp
problem in inserting data in databases created in netbeans using jsp..
add cookies to login form in jsp by using struts2.0 framework
login page
program code for login page in struts by using eclipse
How to Create Login/ Registration Form using PHP and MYSQL
how to retrieve text and images from mysql database and show on html page using jsp servlet
create login page using data from text file
Login form using Jsp in hibernate - Hibernate
Upgrading databases between MySQL 5.0 to MySQL 5.5
login and registration form using servlet and authentication through mysql
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
Jdbc Login Page Validation using Combobox
Jdbc Login Page Validation using Combobox
admin login control page - JSP-Servlet
how to fetch image from mysql using jsp

Ads