VERY SIMPLY

Just Do This:

Since you setting the arr + variable

arr + "1" + .addElement( new Integer (35) );
arr + "2" + .addElement( new Integer (99) );

To display in jsp

just
<%= arr1 %>  (will dispaly 35)
<%= arr2 %>  (will dispaly 99)

Maurice~
http://www.alltechneeds.com





----- Original Message -----
From: "Jake Levesque" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 11, 2001 3:20 PM
Subject: Vector arrays on a jsp page?


> Hello!
>
> I am in dire need of some help here. I hope this isn't too basic a
question
> but here it goes. I have a set of vector arrays. They are named something
> like arr1, arr2, arr3, arr4, etc. What I want to be able to do is loop
> through these lists based on the number in the array's name. I want to be
> able to reference the list by taking the "arr" part and attaching a number
> to it to create the name "arr1, arr2, etc." Then processing the jsp. I can
> output the line that I want with "out.println" in Html, but I can't get it
> to process the line as jsp.
>
> ie:     arr + "1" + .addElement( new Integer (35) );
>         arr + "2" + .addElement( new Integer (99) );
>
> Even if someone knows a better way, than this, to specifically reference a
> list in a group of lists, I would be very appreciative.
>
> thanks in advance,
>
> Jake Levesque - A+
> Web/Database Developer
> www.trakonic.com
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to