Vector myvector = ..
request.setAttrubute("myvector", myvector);
...
<c:forEach var="item" items="${myvector}"> <c:out value="${item.myproperty}" /> <c:forEach>
or
<logic:iterate id="item" name="myvector"> <bean:write name="item" property="myproperty" /> </logic:iterate>
The thread in question was more about nested beans and forms, i don't think anyone would suggest putting readonly stuff in the session.
On 4 Mar 2004, at 17:14, bort wrote:
A request parameter would probably be a better solution, you're right.
I looked up the thread you were speaking of, and see that it went in the
direction of memory usage by the JVM when loaded up with session variables.
Fortunately, that isn't a concern for us as we've loaded up the web server
with RAM.
Back to my original question...
I guess I can just pull the Vector from the request object and iterate through it then?
ex.
Vector myvector = (Vector)request.getParameter("vectorname");
TIA bort
"Geeta Ramani" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]..as a request attribute..? Look through the archives for a fun andspiriteddiscussion on request vs. session vars held just over a week or so ago..JSP
Geeta P.S. Mark, don't flip out..;)
bort wrote:
Hi all
I have an Action class that loads up a Vector with information from a
database. What I would like to do is pass this Vector to the forwardingclassand create a table listing of the data.
I'm thinking of just adding the Vector to the session in the Actionbetterand then retrieving and iterating through it in the JSP. Is there away to do this?
bort
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]