Steve,
The solution you give is for the following situation:
Object[] obj = mybean.getObject();
for (i = 0; i < obj.length;i++)
Object[] obj2 = obj[i];
The original question is how to deal with multidimensionals:
Object[][] obj = mybean.getObject();
steve barrett wrote:
> Right out of 0.92 specification, does this help?
>
> Nested Bean Properties
> Sometimes the multi-valued property you're interested in is
> itself a property of a another property -- that is, it is a nested
> property. An example of this situation might be:
>
> A Market Bean with a property called Company that held multiple
> values; and
> for each value of Company there was a property called Products
> that held multiple values,
> for each value of Product there were two single-valued
> properties
> Name
> Price
>
> Then to get a listing of names and prices for Product j from
> Company i, you would write something like:
>
> <LOOP PROPERTY="market:company" PROPERTYELEMENT="i" >
> <LOOP PROPERTY="i:products" PROPERTYELEMENT="j" >
> <DISPLAY PROPERTY= "j:name" > <DISPLAY PROPERTY=
> "j:price" >
> </LOOP>
> </LOOP>
>
> While the following would result in an error because the Company
> property is multi-valued, but no particular value has
> been selected:
>
> <LOOP PROPERTY="market:company:products" PROPERTYELEMENT="i">
> <DISPLAY PROPERTY=" i:name" ><DISPLAY
> PROPERTY="i:price" >
> </LOOP>
>
> ---Mark Minnoye <[EMAIL PROTECTED]> wrote:
> >
> > Helo,
> > I can't figure thes one out (i've send this message earlier, but it
> didn't seem to come true)
> >
> > a bean:
> >
> > private String[][] values
> ={{"X1.1","X1.2","X1.3"},{"X2.1","X2.2","X2.3"}};
> >
> > public String[][] getValues(){
> > return values;
> > }
> >
> > a JSP:
> >
> > <USEBEAN .....>
> > <LOOP PROPERTY="myBean:values" PROPERTYELEMENT="row"> //so far so
> good
> > <LOOP PROPERTY="row:column" PROPERTYELEMENT="value"> // here i
> get lost
> > <DISPLAY PROPERTY="value">
> > </LOOP></LOOP>
> >
> > any idea's ?
> >
> > Thanks,
> > Mark
> >
> <HR>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
> <HTML>
> <HEAD>
>
> <META content=text/html;charset=iso-8859-1
> http-equiv=Content-Type><BASE
> href="file://C:\Program Files\Common Files\Microsoft
> Shared\Briefpapier\">
> <STYLE>
> <!--
> body {
> margin-left: 8em;
> font-family: Verdana, Helvetica;
> font-size: 10pt;
> color: 000000;
> }
> -->
> </STYLE>
>
> <META content='"MSHTML 4.72.3110.7"' name=GENERATOR>
> </HEAD>
> <BODY background=cid:004c01be65a8$b65b4b20$[EMAIL PROTECTED]
> bgColor=#ffffff>
> <DIV>Helo,</DIV>
> <DIV>I can't figure thes one out (i've send this message earlier, but
> it didn't
> seem to come true)</DIV>
> <DIV> </DIV>
> <DIV>a bean:</DIV>
> <DIV> </DIV>
> <DIV>private String[][] values
> ={{"X1.1","X1.2","X1.3"},{"X2.1","X2.2","X2.3"}};</DIV>
> <DIV> </DIV>
> <DIV>public String[][] getValues(){</DIV>
> <DIV> return values;</DIV>
> <DIV>}</DIV>
> <DIV> </DIV>
> <DIV>a JSP:</DIV>
> <DIV> </DIV>
> <DIV><USEBEAN .....></DIV>
> <DIV><LOOP PROPERTY="myBean:values"
> PROPERTYELEMENT="row"> <A href="file://so">//so</A> far so
> good</DIV>
> <DIV> <LOOP PROPERTY="row:column"
> PROPERTYELEMENT="value"> <U><FONT color=#0000ff>// here i get
> lost</FONT></U></DIV>
> <DIV> <DISPLAY PROPERTY="value"></DIV>
> <DIV></LOOP></LOOP></DIV>
> <DIV> </DIV>
> <DIV>any idea's ?</DIV>
> <DIV> </DIV>
> <DIV>Thanks,</DIV>
> <DIV>Mark</DIV></BODY></HTML>
>
> > ATTACHMENT part 2 image/gif
>
> _________________________________________________________
> DO YOU YAHOO!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
> ===========================================================================
> 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".
===========================================================================
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".