Try this : <logic:iterate id="element" name="newCatFormBean"> <bean:write name="element" property="names"/> </logic:iterate>
-- David Molinier - PagesJaunes - DSI/DET/DCR 3 - 05.56.90.50.03 <*> ----- Original Message ----- From: "Thakur, Vikram" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Wednesday, October 22, 2003 7:33 AM Subject: RE: Help needed on Iterate Tag > Hi Navjot, > This is the error message that I get, > Error 500: Cannot find bean element in any scope > > This is the code in jsp , > <logic:iterate id="element" name="newCatFormBean" property="names"> > <bean:write name="element" /> > </logic:iterate> > > and this is the code in form bean, > > public Collection getNames() { > return names; > } > > Thanks, > Vikram > > -----Original Message----- > From: Navjot Singh [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 22, 2003 10:12 AM > To: Struts Users Mailing List > Subject: RE: Help needed on Iterate Tag > > > can you post the error? > > >-----Original Message----- > >From: Thakur, Vikram [mailto:[EMAIL PROTECTED] > >Sent: Wednesday, October 22, 2003 10:04 AM > >To: 'Struts Users Mailing List' > >Subject: RE: Help needed on Iterate Tag > > > > > >No It is not working.. > > > >-----Original Message----- > >From: Navjot Singh [mailto:[EMAIL PROTECTED] > >Sent: Wednesday, October 22, 2003 9:54 AM > >To: Struts Users Mailing List > >Subject: RE: Help needed on Iterate Tag > > > > > >quick try - try replacing Names with names in iterate tag > > > > > >>-----Original Message----- > >>From: Thakur, Vikram [mailto:[EMAIL PROTECTED] > >>Sent: Wednesday, October 22, 2003 9:55 AM > >>To: Struts (E-mail) > >>Subject: Help needed on Iterate Tag > >> > >> > >>Hi , > >> I have Collection of Strings and I want to print all the values in > >>this collection using Iterate Tag. > >> Any guidelines how do I do this ?? > >> > >> I had tried to implement it as follows but it is not working. > >> > >> <logic:iterate id="element" name="newCatFormBean" property="Names"> > >> <bean:write name="element" /> > >> </logic:iterate> > >> > >> Here the getNames() method of my form bean returns a Collection of > >>Strings. > >> The bean:write method tries to search for FormBean with "element" > >>and I get error. > >> I would really appreciate If someone can help me on this. > >> > >>Thanks, > >>Vikram > >> > >> > >> > >> > >>____________________________________________________ > >>This message contains information that may be privileged or > >>confidential and > >>is the property of the Cap Gemini Ernst & Young Group. It is intended only > >>for the person to whom it is addressed. If you are not the intended > >>recipient, you are not authorised to read, print, retain, copy, > >>disseminate, > >>distribute, or use this message or any part thereof. If you receive this > >>message in error, please notify the sender immediately and delete > >>all copies > >>of this message. > >> > >>--------------------------------------------------------------------- > >>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] > > > >____________________________________________________ > >This message contains information that may be privileged or > >confidential and > >is the property of the Cap Gemini Ernst & Young Group. It is intended only > >for the person to whom it is addressed. If you are not the intended > >recipient, you are not authorised to read, print, retain, copy, > >disseminate, > >distribute, or use this message or any part thereof. If you receive this > >message in error, please notify the sender immediately and delete > >all copies > >of this message. > > > >--------------------------------------------------------------------- > >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] > > ____________________________________________________ > This message contains information that may be privileged or confidential and > is the property of the Cap Gemini Ernst & Young Group. It is intended only > for the person to whom it is addressed. If you are not the intended > recipient, you are not authorised to read, print, retain, copy, disseminate, > distribute, or use this message or any part thereof. If you receive this > message in error, please notify the sender immediately and delete all copies > of this message. > > --------------------------------------------------------------------- > 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]