My container is Resin 2.1.10 supporting Servlet 2.3, but have not yet
played with any JSTL tag's will convert as a last resort.

The method signatures are as follows:

    public void setPid(String id)
    {
        m_pid = id;
    }
    
    public String getPid()
    {
        return m_pid;
    }

Thanks,

Greg

> -----Original Message-----
> From: David Graham [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 06, 2003 11:23 AM
> To: Struts Users Mailing List
> Subject: Re: logic:equal using form bean property?
> 
> If you're using a Servlet 2.3 container you should use the JSTL's
> <c:forEach> and <c:if> tags instead of the Struts tags.  What do your
> getter and setter method for pid look like?
> 
> David
> 
> --- Greg Hess <[EMAIL PROTECTED]> wrote:
> > 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
> >
> >  <http://www.wrappedapps.com>
> >
> >
> 
> 
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to