This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler 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 Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "No Bean Specified. Using LabelValueBeans" Watch "No Bean Specified. Using LabelValueBeans" New topic

No Bean Specified. Using LabelValueBeans

sudha swami
Ranch Hand

Joined: Apr 24, 2007
Posts: 186

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;

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

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.

Consultant, Sima Solutions
I agree. Here's the link:
subject: No Bean Specified. Using LabelValueBeans
It's not a secret anymore!