I am trying to set a hidden field from one of the array elements in a bean like:
I have a bean A with String[] B. I am trying to do <html:hidden name="beanname" property="B[0]"> What method do I need in this form class to have this value set. I have created a method like get/setB().. but it is giving an error: java.lang.IllegalArgumentException: array element type mismatch at java.lang.reflect.Array.set(Native Method) at org.apache.struts.util.PropertyUtils.setIndexedProperty(PropertyUtils.java:851) at org.apache.struts.util.PropertyUtils.setIndexedProperty(PropertyUtils.java:785) at org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:902) at org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932) at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509) at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:772) at org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:2061) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) Can someone please throw some light on this. thanks. george __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>