struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sriram Nookala" <srinook...@mediaone.net>
Subject Re: help with logic:iterate
Date Mon, 25 Feb 2002 18:01:12 GMT
<html:text name="columnName" />
doesn't work since "property" is a required attribute.
----- Original Message -----
From: "keithBacon" <keithbaconstruts@yahoo.com>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>; "Sriram
Nookala" <sriram@proteusmobile.com>
Sent: Monday, February 25, 2002 12:19 PM
Subject: Re: help with logic:iterate


> Hi Sri,
> try
> <html:text name="columnName" />
> instead of
> property="columnName"
>
> struts will then call the toString() method of your columnName objects.
>
> Often your columnName object would have a method like getName()
> and you would specify
> <html:text name="columnName" property="name" />
> I hope that's right!
> Keith.
>
>
>
> --- Sriram Nookala <srinookala@mediaone.net> wrote:
> > I have the following snippet of code in my jsp:
> >
> > <logic:iterate id="columnName" name="ParticipantImportWizardForm"
> >  property="columnNameList">
> >
> > <table border="1" width="80%">
> >     <tr>
> >         <td width="50%"><h3 align="center">Column Name</h3>
> >         </td>
> >         <td width="50%"><h3 align="center">Type</h3>
> >         </td>
> >     </tr>
> >     <tr>
> >         <td width="50%"><html:text property="columnName" /></td>
> >         <td width="50%">
> >             <p>&nbsp;</p>
> >         </td>
> >     </tr>
> > ....
> >
> > I get the error "No getter method for property columnName of bean
> > org.apache.struts.taglib.html.BEAN".
> >
> > columnNameList is a collection of Strings. I can't figure out what I
have to
> > set the name and property attributes of html:text in this case.
> >
>
>
> =====
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Search the archive:-
> http://www.mail-archive.com/struts-user%40jakarta.apache.org/
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Keith Bacon - Looking for struts work - South-East UK.
> phone UK 07960 011275
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Sports - Coverage of the 2002 Olympic Games
> http://sports.yahoo.com
>




--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message