What is session attribute in JSP?

JSPJava 8Object Oriented ProgrammingProgramming

The session attribute indicates whether or not the JSP page uses HTTP sessions. A value of true means that the JSP page has access to a builtin session object and a value of false means that the JSP page cannot access the builtin session object.

Following directive allows the JSP page to use any of the builtin object session methods such as session.getCreationTime() or session.getLastAccessTime()

<%@ page session = "true" %>
raja
Published on 20-Mar-2019 12:37:49
Advertisements