java servlet session

java servlet session

GTU WTAD Practical 18 : Develop a Servlet to authenticate a user, where the loginid and password are available as request parameters. In case the authentication is successful, it should setup a new session and store the user’s information in the session before forwarding to home.jsp, which displays the user’s information like full name, address, etc.

java servlet session

Session is the most important features available on every server side scripting language. in java servlet session is the best way to store your data on server side. You can store user identification information on Serverside to identify the unique user. This example explains how we can store data on Session.

File Name : index.jsp

File Location : Tomcat_Apache\webapps\gtu18\

 

File Name : home.jsp

File Location : Tomcat_Apache\webapps\gtu18\

 

File Name : web.xml

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

 

File Name : LoginVerificationUsingSession.java

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

 

Output (index)

GTU WTAD Practical 18 : Develop a Servlet to authenticate a user, where the loginid and password are available as request parameters. In case the authentication is successful, it should setup a new session and store the user's information in the session before forwarding to home.jsp, which displays the user's information like full name, address, etc.

Output (home)

GTU WTAD Practical 18 : Develop a Servlet to authenticate a user, where the loginid and password are available as request parameters. In case the authentication is successful, it should setup a new session and store the user's information in the session before forwarding to home.jsp, which displays the user's information like full name, address, etc.

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