Sriram
Thanks for refering me to that article. Unless I am missing something, the article presented a "typical" indexed property example of both
JSP code and the bean ActionForm getters and setters.Altho, it avoided the use of <html:
test .../> to construct the page.
This is indeed the model I am using. The problem is that the % signs used in the query string returning to the ActionForm are preventing the indexed objects from being parsed. Thus the setter methods are not invoked.
Here is the JSP code
Here is the resulting query string:
test=5&testb=6&lines%5B0%5D.name=tim&test=4&lines%5B0%5D.town=milton&lines%5B1%5D.name=tom&test=4&lines%5B1%5D.town=wilton&lines%5B2%5D.name=todd&test=4&lines%5B2%5D.town=dilton&lines%5B3%5D.name=ted&test=4&lines%5B3%5D.town=hilton&operation=Submit&ams=1258
The indexed properties (ie ines%5B0%5D.name=tim )are not being parsed, I presume because of the % sign. The following method is never invoked:
Question:
1) Do I need to set a <form-property > in struts-config.xml to handle indexed propertiesin the ActionForm?
2) How do I tell my browser (Firefox) ont to encode the brackets [ and ]? I presume that is the source of the problem.
3) How do I tell Struts to decode the %5d %5b characters before the request is parsed?
4) Am I making the wrong assumptions as to where the problem is?
Thanks again for your help on this problem.
Tim