tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grewal, Gary" <ggre...@necam.com>
Subject RE: Re-Setting the bean in a session scope
Date Mon, 02 Apr 2001 16:28:38 GMT
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




Mime
View raw message