Search code examples
javajakarta-eeweb-applicationstapestry

where is Session's attributes are saved


I'm trying to add an attribute to session, in a huge pre-realized project (web application project using Java and Tapestry framework), but I don't know where the attribute are saved, so that I can declare a new attribute for Session


Solution

  • in fact , I found out that attributes are added like variable into the session declaration, using just session.setAttribute("Attribute", name) and then it will be saved, and you can access it using session.getAttribute(name)