J
jrefactors
There are 2 jsp pages. In page1.jsp, it will keep the session sa, and
it can go to page2.jsp
If page2.jsp will modify the session, do we need to set the session
again, to make the session
updated? i.e. do we need this: session.setAttribute("sa", sa);
page1.jsp
==========
session.setAttribute("sa", sa);
page2.jsp
=========
sa = (ServiceAddressModel)session.getAttribute("sa");
sa.setName("joe");
session.setAttribute("sa", sa); //do we need this??
please advise. thanks!!
it can go to page2.jsp
If page2.jsp will modify the session, do we need to set the session
again, to make the session
updated? i.e. do we need this: session.setAttribute("sa", sa);
page1.jsp
==========
session.setAttribute("sa", sa);
page2.jsp
=========
sa = (ServiceAddressModel)session.getAttribute("sa");
sa.setName("joe");
session.setAttribute("sa", sa); //do we need this??
please advise. thanks!!