Home Answers Viewqa JSP-Servlet login page using jsp servlrt with mysql database?

 
 


rakesh dilip patil
login page using jsp servlrt with mysql database?
1 Answer(s)      3 months and 12 days 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 Pages:

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.