If a
jsp uses a bean with session-scope,
does that mean that the bean only can be referenced from this session or does it mean that every
thread requesting the jsp has access to the SAME bean? The main question is: does the bean need to be threadsafe, or does the container instansiate new beans for every session?
Here's an MVC question: Not using
EJB:s, would it seem like a good idea letting a
servlet choose view depending on request-parameters and set bean-properties before dispatching to the view(jsp), then the jsp simply uses getProperty() against the bean??? If the beans properties needs to be set with db-data, who should have the responsibility to access the db? Servlet or the bean itself? What would be a normal approach?
Thanks!(newbie to MVC and jsp:s)