This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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
 
 
subject: No Bean Specified. Using LabelValueBeans
 
Similar Threads
struts: html:options tag not working
html:optionsCollection from a DynaActionForm
LabelValueBeans
Code optimization for html:option tag
Problem with html:select