<html:text name="columnName" /> doesn't work since "property" is a required attribute. ----- Original Message ----- From: "keithBacon" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Sriram Nookala" <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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> </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:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>