Hi All,

 

I am iterating over a collection and want to display only a single Object. I have a form property(pid) indicating the Object index within the collection.

 

<logic:iterate name="products" id="product" indexId="ctr">

<logic:equal name="createInstanceForm" property="pid" value="<%=ctr%>">

 

 

This code generates the following error:

 

Error: No applicable overload for the method named "setValue" was found in type "org/apache/struts/taglib/logic/CompareTagBase". Perhaps you wanted the overloaded version "void setValue(java.lang.String $1);" instead? '

 

But when I use a request parameter to indicate the index it works fine:

 

<bean:parameter name="pid" id="pid" />

 

<logic:iterate name="products" id="product" indexId="ctr">

<logic:equal name="pid" value="<%=ctr%>">

 

Any help is much appreciated.

 

Cheers,

 

Greg Hess

Software Engineer

Wrapped Apps Corporation

275 Michael Cowpland Dr.

Suite 201

Ottawa, Ontario

K2M 2G2

Tel: (613) 591 -7552

Fax: (613) 591-0523

1 (877) 388-6742

www.wrappedapps.com

 

Reply via email to