Hi Arie,
now I see what you want... it works OO!
I did it this way:

class Bean{
  Vector elements;
  public Element getElement(int index) {return elements.elementAt(index);}
}

class Element
{
  Integer n;  String s;
  public Integer getNumber() { return n; }
  public String getString() { return s; }
}

<LOOP PROPERTY="myBean:element" PROPERTYELEMENT="elem" >
        <DISPLAY PROPERTY= "elem:number" >
        <DISPLAY PROPERTY= "elem:string" >
</LOOP>

bye!
weHe

> -----
> Arie Fishler [mailto:[EMAIL PROTECTED]]
> RE: Loops on multiple properties
>
> Hi Werner
>
> If I understand it correctly what you suggest will perform a NESTED loop
> which means that if I have j values for property x and k values
> for property
> y then the LOOP will produce j*k lines and I don't want it to behave like
> that. The properties have the same number of elements t and I
> want the LOOP
> to produce only t lines.
>
> Class Bean {
>       Vector numbers;
>       Vector strings;
>
>       Integer getNumbers(int index ) {
>               return numbers.elementAt(indesx);
> }
>
> String getStrings(int index) {
>               return strings.elementAt(indesx);
> }
> }
>
> I want my dynamic page to display lines which contain a number
> and matching
> string on each line.

===========================================================================
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".

Reply via email to