Hi,

I am facing a problem with prepoulating the form. I am using following code
to prepopulate the form in my Action class:

Vector eventTypes = new Vector();
eventTypes.add(new LabelValueBean("StartFailure", "Value 0"));
eventTypes.add(new LabelValueBean("LowMemory", "Value 1"));
request.setAttribute("eventTypes", eventTypes );

and the following code in my jsp:
<html:select property="eventTypes" size="2" titleKey="
alarmEventFilter.selectKey.eventType" multiple="true">
<html:options collection="eventTypes" property="value" labelProperty="label"
/>
</html:select><html:errors property="eventType"/><br/>

The application works well when the validate() returns null but when the
validate() returns errors, it gives the following error:

SEVERE: Servlet.service() for servlet jsp threw exception
*

javax.servlet.jsp.JspException*: Cannot find bean under name *eventTypes*

I have no clue about it. Pl help.

regards,
Pankaj

**

Reply via email to