Ciao Guys,
I have a problem using the <form:input tag.
following i show a piece of my class which it will be populate after the submitting of the form.
Code:public class ArrayOfProperty{ private String[] test = {"1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"}; public String getpropertydatalabel(int id){ return this.test[id]; } public void setpropertydatalabel(int id,String value){ this.test[id] = value; } }
but when i use <form:input path="propertydatalabel[1]" size="1" maxlength="200" lang="en" dir="ltr" /> this tag i encounter this exception
org.springframework.beans.NotReadablePropertyExcep tion: Invalid property 'propertydatalabel[1]' of bean class [com.generalstudios.ArrayOfProperty]: Bean property 'propertydatalabel[1]' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
org.springframework.beans.BeanWrapperImpl.getPrope rtyValue(BeanWrapperImpl.java:540)
org.springframework.beans.BeanWrapperImpl.getPrope rtyValue(BeanWrapperImpl.java:532)
So in the end i want to reproduce the same behavior of the <html: tag of struts


Reply With Quote
