You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Grewal, Gary" <gg...@necam.com> on 2001/04/02 18:28:38 UTC
RE: Re-Setting the bean in a session scope
I tried doing
<jsp:useBean id="myBean" class=.. scope="session" />
Display properties as got from the bean...
Set some properties....
Display those newly set properties....
<% myBean = new MyPackage.MyBean(); %>
Display the properties...
It seemed to pick the default values and did appear to reset the bean but
was not adding it to the session so I had to make an explicit call to
<% session.setAttribute("myBean", myBean); %>
and this seemed to do the trick try and see if this works for you...
===
Gary Grewal