File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 179

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
Similar Threads
Problem with html:select
html:optionsCollection from a DynaActionForm
Code optimization for html:option tag
struts: html:options tag not working