Posted On: Dec 21, 2022
JSP Session uses HttpSession to create a session for each user. To create a session in JSP, we need to use setAttribute from the session implicit object.
Creating Session
session.setAttribute("user", name); //it creates the session for the object name.
To remove the object from the session.
session.removeAttribute("user"); //deletes the session for the object name.
To remove the entire session.
session.invalidate(); - it kills the entire session and all the objects that are associated with this session.
Never Miss an Articles from us.
ErrorPage Attribute process specifies a JSP page that should process any exceptions thrown but not caught in the current page....
JSP, expanded as Java Server Pages is a Java-based technology to create dynamic web pages. Released in 1999 by Sun Microsystems, JSP is based on technologies such as HTML, SOAP, XML, etc...
The EL (Expression Language) in the JSP is used to access the data stored in the JavaBeans along with implicit objects like requests, sessions, etc...