Department: Genel Müdürlük/Bilgi İşlem
hi doug,
You have to define a method that return whole array. Method name should be
property_name + 's'.
For example :
your bean has an String array
private String[] myArray = new String[40];
private String myItem;
private String[] getMyItems() {
return myArray;
}
public String getMyItem(int index) {
return getMyItems()[index];
}
>From JSP,
<bean name="xxx" .........>
You can use repeat tag to get array items
<repeat index="index">
<insert>
$(bean="xxx" property="myItem(index)")
</insert>
</repeat>
"Lester, Doug" <[EMAIL PROTECTED]> on 02/11/2000 03:35:14 AM
Department:
Please respond to "Lester, Doug" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: BASAR DALDAL/FINANSBANK)
Subject: Send a String array from a Servlet to a JSP
Whets the best way to send and call a array through the request object.
I am trying to get it as a bean but its not working.
Thanks
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html