This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes No Bean Specified. Using LabelValueBeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "No Bean Specified. Using LabelValueBeans" Watch "No Bean Specified. Using LabelValueBeans" New topic
Author

No Bean Specified. Using LabelValueBeans

sudha swami
Ranch Hand

Joined: Apr 24, 2007
Posts: 179
Hi,

I am getting the error no bean specified. Any help is appreciated.

Action Form:
-------------
public LabelValueBean[] getOptions()
{
for (int i = 1; i <= 31; i++) {
options[i] = new LabelValueBean("Show events for last " + String.valueOf(i) + " day", String.valueOf(i));
}
return options;
}

/**
* @param options The options to set.
*/
public void setOptions(LabelValueBean[] options) {
this.options = options;
}


JSP
<html:select property="lastEvent" tabindex="1" title="Select Event" style="width:220px;">
<html ptionsCollection property="options" label="label" value="value" />
</html:select></td>

regards
sudha
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Please post the full text of the error message you're getting. It would also be helpful to see the <html:form> tag in your jsp as well as relevant portions of your struts-config.xml file.


Merrill
Consultant, Sima Solutions
 
wood burning stoves
 
subject: No Bean Specified. Using LabelValueBeans