Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 Building Microservices this week in the Design 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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: No Bean Specified. Using LabelValueBeans
It's not a secret anymore!