Can you please tell which tag are you using html:select or htmlptionsCollection?
Did your bean hold the getter and setters for the collection ?
Struts may require an indexed getter method for for your collection. Adding that to your form may allow the select/optionsCollection tag to work correctly
Joined: Nov 25, 2003
we are using and we do have proper setter and getters for the LIST.
can you please guide by providing some sample code for indexed getters/setters ?
Er. Rohit Sharma
Joined: Dec 11, 2008
Neeraj could you please provide me the code you are working.
Are your collection values are coming from database? Please also check if the bean is present in any scope in jsp.
Make sure this action forwards to the JSP, and then call the URL for the action (/myaction.do) rather than calling the JSP directly (/mypage.jsp).
... hope this will help other who came to this post thru search
I have had come across this very error and Found the solution that wasn't that obvious and could help as a hint
in my case the optionsCollection could not be found because the <html:form >name was Identical to the InputForm.java with the List, so the options where searched in the wrong place, in this case just following the name convention for Java solved the problem