This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Struts and the fly likes html:optionsCollection - failed to obtain specified collection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:optionsCollection - failed to obtain specified collection" Watch "html:optionsCollection - failed to obtain specified collection" New topic
Author

html:optionsCollection - failed to obtain specified collection

Praveena Paruchuru
Greenhorn

Joined: Dec 10, 2009
Posts: 6
hi

I am using <htmlptionsCollection property='regions' label='state' value='code'/>

In ActionForm, I have variable

private Region[] regions; and setter and getter methods for this.

In the action class I am setting the form.setRegions(regions);

Initially when theform is loading, it is displaying regions.

But when I submit the page, it is going to the action class and setting the regions, but when the page is loading it is giving error that 'failed to obtain specified colleciton".

Could anybody tell me how to solve this?

Thanks
Praveena
 
Consider Paul's rocket mass heater.
 
subject: html:optionsCollection - failed to obtain specified collection
 
It's not a secret anymore!