This example from jakarta is it available with 1.02 version of struts ? My implementation does'nt work.
javax.servlet.ServletException: Exception thrown by getter for property numeroContratIndexed[0] of bean form2 Example from jakarta http://jakarta.apache.org/struts/faqs/indexedprops.html : Indexed Properties The simplest demonstration of using indexed properties in Struts can be shown with the following simple bean and JSP page: package org.apache.struts.webapp.exercise; import org.apache.struts.action.ActionForm; public class StringBean extends ActionForm { private String strAry[] = { "String 0", "String 1", "String 2", "String 3", "String 4" }; public String getStringIndexed(int index) { return (strAry[index]); } public void setStringIndexed(int index, String value) { strAry[index] = value; } } First note the two methods in the StringBean class, "getStringIndexed()" and "setStringIndexed()". Note that the "get" method takes an "int" and the "set" method takes an "int" and "String". The Beanutils package and Struts recognizes this arrangement of signatures as an "indexed property", in this case with the property name "stringIndexed". <!-- indexedtest.jsp --> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <jsp:useBean id="bean" class="org.apache.struts.webapp.exercise.StringBean"/> <bean:write name="bean" property="stringIndexed[1]"/> Note the property value of "stringIndexed[1]". This is intended to reference the indexed property "stringIndexed", and the 1st (zero-based) entry of whatever array or collection which the indexed property represents. As you might be able to guess, when this page is executed, it will print just the string "String 1", which is the corresponding array entry at that index value. This is a simple demonstration of what indexed properties can provide. ------------------------------ Ce message est protege par les regles relatives au secret des correspondances ; il peut en outre contenir des informations a caractere confidentiel ou protegees par differentes regles et notamment le secret des affaires ; il est etabli a destination exclusive de son destinataire. Toute divulgation, utilisation, diffusion ou reproduction (totale ou partielle) de ce message, ou des informations qu'il contient, doit etre prealablement autorisee. Tout message electronique est susceptible d'alteration et son integrite ne peut etre assuree. Les AGF declinent toute responsabilite au titre de ce message s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur de l'erreur de distribution et de la destruction du message. This message is protected by the secrecy of correspondence rules ; furthermore it may contain privileged or confidential information that is protected by law, notably by the secrecy of business relations rule ; it is intended solely for the attention of the addressee . Any disclosure, use, dissemination or reproduction (either whole or partial) of this message or the information contained herein is strictly prohibited without prior consent. Any electronic message is susceptible to alteration and its integrity can not be assured. AGF declines any responsibility for this message in the event of alteration or falsification.. If you are not the intended recipient, please destroy it immediately and notify the sender of the wrong delivery and the mail deletion. ------------------------------ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]