The Object is the logged in user with some objects related to him. I would like to keep the traffic on the database to a minimum. I need a proper solution to do this. I use JSP-Code without Scriptlets, with Servlets and I get the object through JPA. I hope you understand what I mean.
Share
You can store your object to the HttpSession via the methods
setAttribute(...)and retrieve it viagetAttribute(...)So your code (in a servlet) would look something like that: