Online Hibernate Training just in Rs. 1000

One week online training in Hibernate ORM framework. Learn Hibernate Framework and enhance your skills. Best Online Hibernate training at 90% discount. Join Now!! Offer is valid Only for limited Period!!! Online Training Big Data and Hadoop Training Java Training  

login page using jsp servlrt with mysql database?



Share on Google+Share on Google+

rakesh dilip patil
login page using jsp servlrt with mysql database?
1 Answer(s)      4 years and 6 months ago
Posted in : JSP-Servlet

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


Related Tutorials/Questions & Answers: