I tried, here is the code in my action :
 
     tabTest= new Vector();
     test = new Client();
     test.setName("Tata DUBAR");
     tabTest.add(test);
     test = new Client();
     test.setName("SFA");
     tabTest.add(test);
     session.setAttribute("tabTest",tabTest);
 
And the JSP code :
 
<jsp:useBean id="tabTest" scope="session" class="java.util.Vector" />
<logic:iterate id="client" name="tabTest" type="Client">
    <bean:write name="client" property="name"/>
</logic:iterate>
 
I still have my "cannnot find client bean " error.........
 
Thanks Sylvain !
----- Original Message -----
Sent: Thursday, May 10, 2001 3:17 PM
Subject: RE: Logic iterate problems

Maybe use need to use the  <jsp:useBean name="tabTest"  class="VectorObject" scope = "session" />
in your jsp page. Give it a shot and let me know...
 
cheers,
Amar..
-----Original Message-----
From: Sylvain FAGNENT [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 9:13 AM
To: [EMAIL PROTECTED]
Subject: Re: Logic iterate problems

Yes , we did ! :-(
----- Original Message -----
Sent: Thursday, May 10, 2001 3:04 PM
Subject: RE: Logic iterate problems

have u put that object into the session, before u get to the form
 
session.setAttribute("tabTest", VectorObject);
-----Original Message-----
From: Sylvain FAGNENT [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 2:57 PM
To: [EMAIL PROTECTED]
Subject: Logic iterate problems

Hello,
 
I have a Vector Object stored in my session with the key "tabTest" this Vector
contains "Client" Objetcs, Client classe have a "name" property.
 
I use this code in my JSP :
 
<logic:iterate id="client" name="tabTest" scope="session" type="Client">
    <bean:write name="client" property="name"/>
</logic:iterate>
 
This error is return :
 
...JSP Exception : Cannot find bean client in scope null....
 
any help...Thanks
 
Sylvain

Reply via email to