This is really a question for struts-user, rather than struts-dev.
However...
You should put the vector into request scope, unless it has to exist across
multiple requests, in which case you should put it into session scope. In
your action, just use request.setAttribute("list", v).
--
Martin Cooper
----- Original Message -----
From: "Pham Thanh Quan _ SDC" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 27, 2001 7:05 PM
Subject: Need help !
Hi all,
I have a problem, my code in a jsp page is as follow :
<%
Vector v = new Vector();
<file://put> // put something into the vector here
pageContext.setAttribute("list", v, PageContext.PAGE_SCOPE);
%>
<html>
<body>
<logic:iterate id="element" name="list">
<bean:write name="element" property="element_attribute"/>
</logic:iterate>
</body>
</html>
I would like to put the first part into an action class and the last
part into a jsp page but the problem is i can't get the variable
pageContext from the action class. Should i use session to solve this
problem ? (e.g. the action class will put the vector into session and
then, the jsp page will get the vector, or another way, the jsp page
will put the page context into session and then the action class will
get the page context). Please help !
Thanks and regards
Quan