1. Declare the bean's scope as "session" as an attribute of the <form-bean>
declaration in struts-config.xml and provide an empty reset() method in the
bean class;

2.  Use java scriplets (though I do not recommend this) as in 
<% List myBean = (List) session.getAttribute( "myBean"); 
   Iterator i = myBean.iterator();
   while( i.hasNext()) { 
     out.println( "<td>" + i.next().toString() + "</td>");
   } %>

Goot Morgdah,
Mark

-----Original Message-----
From: Zhihua Xu [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 25, 2002 2:38 PM

Hi, Mark,

How can I keep a form bean in a session scope? In addition how can I access
a form
bean from a jsp page directly, instead of using the jsp tags?

Thanks,

Daka

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to