ERROR javax.servlet.jsp.JspException: Failed to obtain specified collection at org.apache.struts.taglib.html.OptionsCollectionTag.doStartTag(OptionsCollectionTag.java:176)
Why my form list property is null ?
[ November 14, 2008: Message edited by: Federico Artebani ] [ November 14, 2008: Message edited by: Atlantide ]
Tom Rispoli
Ranch Hand
Joined: Aug 29, 2008
Posts: 349
posted
0
I think you need an indexed getter and setter for your list property in addition to the unindex ones you have. That is, make methods with the same names that take in additional parameter, and int. Then use that int to either get the value from the list at the int position or set an individual record at the int position.
Fred Artes
Ranch Hand
Joined: Nov 14, 2008
Posts: 43
posted
0
Mmmm, I don't know.
After this instruction the list is correctly saved into form
After return mapping findforward, in the jsp, ALL properties of action form are null.
Post your action mapping for above action from struts-config.xml, and one doubt, you post the code for MyForm form & you are retrieving in action class as