You can create a couple of get/set methods in your bean so that you can
exchange data between the JSP, and the Servlet. Something like:
<class> array[] ;
public <class>[] getArray()
{
return array;
}
public void setArray(<class> array[])
{
this.array = array;
}
<class> = the class type you're using (String, Integer, etc...)
----- Original Message -----
From: "Dennis Leary" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 20, 2000 1:04 PM
Subject: Dynamic Array Storage
> Here is what I'm doing.
>
> Have a form that has up to 10 records of input all of type text.
>
> I have written JSP that processes the form and checks a particular field.
> if the record is good then it stores it into a dynamic array.
>
> Now that I have this array I need to store it in a bean somehow but I'm
not sure how to go about it and then get the array back out later on.
>
> Any ideas or sample code to work with would be great.
>
> Thanks
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> 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".
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