GTU WTAD Practical 17 : Develop a Servlet which looks for cookies for username and password, and forwards to a home.jsp in case the cookies are valid and forwards to login.jsp, in case the cookies are not found or the cookies are nto valid

GTU WTAD Practical 17 :  Develop a Servlet which looks for cookies for username and password, and forwards to a home.jsp in case the cookies are valid and forwards to login.jsp, in case the cookies are not found or the cookies are nto valid

GTU WTAD Practical 17 :  Develop a Servlet which looks for cookies for username and password, and forwards to a home.jsp in case the cookies are valid and forwards to login.jsp, in case the cookies are not found or the cookies are nto valid

This program explains use of cookies to store user information at client side. Cookies can be used to store user related preferences or to improve user interface or to display proper advertisement based on user interest. This program explains how we can write data into Cookies and how we can read Cookies.

File Name : index.jsp

File Location : Tomcat_Apache\webapps\gtu17\

File Name : home.jsp

File Location : Tomcat_Apache\webapps\gtu17\

 

File Name : web.xml

File Location : Tomcat_Apache\webapps\gtu17\WEB-INF

 

File Name : LoginVerificationUsingCookies.java

File Location : Tomcat_Apache\webapps\gtu17\WEB-INF\classes

 

Output (index page)

GTU WTAD Practical 17 :  Develop a Servlet which looks for cookies for username and password, and forwards to a home.jsp in case the cookies are valid and forwards to login.jsp, in case the cookies are not found or the cookies are nto valid

Output (home page after login)

GTU_17_2

Adarsh Patel

My Self Adarsh Suryakant Patel. Currently I am working as Assistant Professor at Parul Instiute of Engineering and Technology, MCA Department, Limda, Vadodara. Major Responsibility : * Lectures * Organizing Training and Expert Sessions for * Placement and Recruitment * Faculty Representative