• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

No Bean Specified. Using LabelValueBeans

 
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic