Assuming you have a method public String getNombre() in the class project.struts.OTD.OTDEmpresa, try <c:out value='${lee.nombre}'/> with a lower-case 'n'.
> -----Original Message----- > From: Francisco Exposito Aguilera [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 26, 2006 10:35 AM > To: user@struts.apache.org > Subject: Error with c:for Each and c:out > > > Hi all, > > I am trying to show the results of a search from a database > into a jsp page, > but it doesn't work. > > If I add in the jsp file: > > <c:forEach items='${listarEmpresas}' var='lee'> > <tr><td><c:out value='${lee.Nombre}'/></td></tr> </c:forEach> > > where listarEmpresas is the parameter where is saved the > Collection and > Nombre is one of the fields from OTDEmpresas: > session.setAttribute("listarEmpresas",leeCollection); > > then I get: > > javax.servlet.ServletException: An error occurred while > evaluating custom > action attribute "value" with value "${lee.Nombre}": Unable > to find a value > for "Nombre" in object of class "project.struts.OTD.OTDEmpresa" using > operator "." (null) > > If I add in the jsp file: > > <td><c:out value='${listarEmpresas}'/></td> > > then I get in a row of the created table: > > [EMAIL PROTECTED] > > Could anyone help me? > > Thanks a lot! > > _________________________________________________________________ > Descubre la descarga digital con MSN Music. Más de un millón > de canciones. > http://music.msn.es/ > > > --------------------------------------------------------------------- > 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]