This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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
 
wood burning stoves
 
subject: html:optionsCollection - failed to obtain specified collection
 
Similar Threads
problem with html:optionsCollection
message resource help!!
Struts Help urgent
Problem With OptionsCollection Tag
Dynamic drop down in struts