"asaguden" <as******@lycos.com> wrote in message
news:b1*************************@posting.google.co m...
Hi!
I wonder if there is a difference [if so, what] between:
User user = (User)session.getAttribute("user");
and:
User user = (User)request.getSession(false).getValue("user");
/peter
request.getSession(false) and session refer to the same object, as does
request.getSession(true). The difference is that the latter will create a
session object if one does not exist. The difference between getAttribute
and getValue is that getValue is deprecated. Use getAttribute.