struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nanduri, Amarnath" <Amarnath.Nand...@Agilquest.com>
Subject RE: Logic iterate problems
Date Thu, 10 May 2001 13:39:06 GMT
In your jsp page did you do an import on client.... ?
 
<%@ page import = "beans.Client" %>

 

-----Original Message-----
From: Sylvain FAGNENT [mailto:sfagnent@octo.com]
Sent: Thursday, May 10, 2001 9:33 AM
To: struts-user@jakarta.apache.org
Subject: Re: Logic iterate problems


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 ----- 
From: Nanduri, Amarnath <mailto:Amarnath.Nanduri@Agilquest.com>  
To: 'struts-user@jakarta.apache.org'
<mailto:'struts-user@jakarta.apache.org'>  
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:sfagnent@octo.com <mailto:sfagnent@octo.com>
]
Sent: Thursday, May 10, 2001 9:13 AM
To: struts-user@jakarta.apache.org <mailto:struts-user@jakarta.apache.org> 
Subject: Re: Logic iterate problems


Yes , we did ! :-(

----- Original Message ----- 
From: Dudley Butt@i-Commerce <mailto:Dudley.Butt@za.didata.com>  
To: 'struts-user@jakarta.apache.org'
<mailto:'struts-user@jakarta.apache.org'>  
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:sfagnent@octo.com <mailto:sfagnent@octo.com>
]
Sent: Thursday, May 10, 2001 2:57 PM
To: struts-user@jakarta.apache.org <mailto:struts-user@jakarta.apache.org> 
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



Mime
View raw message