OGNL Array and List Indexing
问题 I'm sending this parameter to my struts action cdata[1]=bar In my action I'm interested in the index and the value. I defined a getter/setter pair for CDATA as the OGNL documentation suggests: public void setCdata(int index, String value){ LOG.info("setData; key="+ key +"; value="+ value); // store index and value; } public String getCdata(int index){ return null; // don't really need a setter } This is the Exception I get: 2013-04-29 15:38:49,792 [http-apr-8080-exec-3] WARN com.opensymphony