> -----Urspr�ngliche Nachricht----- > Von: Mark Minnoye [mailto:[EMAIL PROTECTED]] > Gesendet am: Mittwoch, 3. M�rz 1999 18:56 > An: Werner Hennrich > Betreff: Re: AW: <LOOP> on Enumeration > > I'm trying to acces a nested loop, not mutch luck so far ... > > I have in my bean the method: > > public String[][] getValues(){ > return values; > } > > Now for in my JSP-page i tried several things but i still > couldn't get the > values. > It's not at all clear to me how to use nested values with JSP0.92 . > <loop property="myBean:values" propertyelement="row"> //so > far so good > <loop property"row: ????? " propertyelement="column"> // here i > get confused > <display property="column ?????"> // neither this makes > any sense > </loop> > </loop> > > How should i do this? anyone ? > > Thanks, > Mark Mark, what you return is an arry of arrays of Strings. But your outer loop has to return Beans (objects with getters, not arrays) and you can then use the inner bean for another loop. class App { public B[] getBees() } class B { public String getName() public C[] getCees() } class C { public String getName() } ---JSP: <USEBEAN name="appBean" type="App"> </usebean> <LOOP PROPERTY="appBean.bees" PROPERTYELEMENT="beeBean"> <display property="beeBean:name"> <loop property="beeBean:cees" propertyelement="ceeBeen"> <dislay property="ceeBean:name"> </loop> </LOOP> --- it works OO! Werner =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
