aspose file tools*
The moose likes Struts and the fly likes logic:iterate problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "logic:iterate problem" Watch "logic:iterate problem" New topic
Author

logic:iterate problem

AnilPrakash Raju
Ranch Hand

Joined: Jul 26, 2004
Posts: 137
Hi,

I got a funny problem with logic: iterate.

With the following code:

<logic:iterate name="vHvnsDriverVec" id="vHvnsDriver1" scope="request">
<tr>
<td><bean:write name="vHvnsDriver1" property="driverNo"/></td>
<td><bean:write name="vHvnsDriver1" property="licenceNumber"/></td>
<td><bean:write name="vHvnsDriver1" property="licenceState"/></td>
</tr>
</logic:iterate>

In the action i can see that the vHvnsDriverVec contains several
entries.
In the jsp the vHvnsDriverVec is not empty( i tested this with <logic:notempty> but the values are not displayed.

What am i doing wrong?

Thanks in advance

Anil
sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
Hi anil

The entries are there in action class fine but had u set that vector to request scope and u had used logic:notempty but there might be a chance that vector may be empty of size 0.so rell me if u r getting some error
AnilPrakash Raju
Ranch Hand

Joined: Jul 26, 2004
Posts: 137
Hi,

I finally got it working.

It was my fault. I forgot to include :

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>



Anil
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: logic:iterate problem