With the code : <nested:iterate id="employee" name="employesVector"> <nested:nest property="emploiservice"> <nested:write property="idemploiservice/> </nested:nest> </nested:iterate>
I got the following error in my browser: " Error 500: No getter method for property null[0].emploiservice.idemploiservice of bean employesVector " why it retrieves "null[0]"??? TIA ----- Original Message ----- From: Gaet To: Struts Users Mailing List Sent: Thursday, November 17, 2005 5:00 PM Subject: Re: Newbie problem with "Nested" tag library Thanks Alex but i'd like to use only tags and if possible "Nested" tags.... Why, this works <nested:iterate id="employee" name="employesVector"> <nested:write name="employee" property="nom"/> </nested:iterate> And, this not : <nested:iterate id="employee" name="employesVector"> <nested:nest property="emploiservice"> <nested:write property="idemploiservice/> </nested:nest> </nested:iterate> I know that I have no attribute "name" in second case, but normally I don't know which I have to put... Thanks for help! ----- Original Message ----- From: ALEX HYDE To: Struts Users Mailing List Sent: Thursday, November 17, 2005 4:23 PM Subject: Re: Newbie problem with "Nested" tag library You might try something along the lines of: <ns:iterate id="employee" name="employesVector"> <ns:out value=${employee.emploiservice.emploi.libellelong}"/> </ns:iterate> Syntax not accurate... :O| --- Gaet <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I currently want to display a value with struts's > tags instead with "pure" > java. > Here is the code I want to translate : > > <%= > ((Employe)employesVector.elementAt(i)).getEmploiservice().getEmploi().getLib > ellelong() %> > > > I have tried to translate with nested library as it > seems to be the solution > but with no result. > > > <nested:iterate id="employee" name="employesVector"> > <nested:nest property="emploiservice"> > <nested:nest property="emploi"> > <nested:write > property="libellelong"/> > </nested:nest> > </nested:nest> > </nested:iterate> > > Does anybody know the solution? (or have a link on a > good tutorial/samples) > > Thanks very much for your help > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > ___________________________________________________________ Yahoo! Model Search 2005 - Find the next catwalk superstars - http://uk.news.yahoo.com/hot/model-search/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]