View Full Version : Struts:FormBean issue with html:select tag

05-05-2004, 02:22 PM
I have a JSP that has the following code:
<html:select name="formBean" property="textId">
<html: options
<html: options

I have the setters and getters for the bean attributes in the form bean that is defined in the struts-config.xml file as:
<form-bean name="formBean" type="com.xora.apps.messaging.presentation.form.MyForm

The collection WORDS is set in the request attribute and contains a List of values when the action form is called(ie when the form loads) to be populated in the options tag. But when the form loads the message:

500 Servlet Exception
javax.servlet.jsp.JspException: Cannot find bean under name formBean

is displayed even after manually creating the formBean instance in the ActionForm page as
MyForm formBean = new MyForm();

Any fix suggested would be greatly appreciated...

05-09-2004, 12:01 PM
don't know much about javabeans, but...you didn't close your quotation mark for type if that matters...I would think it might.

<form-bean name="formBean" type="com.xora.apps.messaging.presentation.form.MyForm

05-10-2004, 02:54 AM
Nor is there a closing '>'. :)