On Fri, 15 February 2002, [EMAIL PROTECTED] wrote:
> Adam, I've just cracked this myself.
> 
> In your Action, set your collection to a session attribute:
> Vector someVec = valueBean.getSomeData();
> session.setAttribute("itData", someVec);
> 
> Then in your JSP:
> <logic:iterate name="itData" id="list" scope="session">
> ...
> </logic:iterate>


I've still got 2 questions though:

(1) if you put it in the request, then it will get cleaned up by the server at the end 
of the page automatically, but in the session it will stay until the session dies, 
right?

(2) is it thread-safe? Guess it must be, but why? Does it all stay in one thread of 
the main struts controller servlet, and out of reach of any other threads?

thanks
Adam


Find the best deals on the web at AltaVista Shopping!
http://www.shopping.altavista.com

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

Reply via email to