struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Caroline Jen <>
Subject Drop-Down List - Cannot Retrieve Definition From Form Bean Null
Date Tue, 02 Dec 2003 00:27:34 GMT
My drop-down list got an error message:
org.apache.jasper.JasperException: Cannot retrieve
definition for form bean null

I have tried to display the drop-down list in two

<html:select size="1" property="editor"
<html:options collection="editors" property="name"

<bean:define id="editorsList" name="editors"
scope="session"  />
<html:select property="editor" size="1"
<html:options collection="editorsList"
labelProperty="name" property="value"/>

The editors is a Collection of EditorBean passed to
the JSP this way:
HttpSession session = request.getSession();
session.setAttribute( "editors", editors );

and Editor Bean is:
public class EditorBean 
   private String name;

   public EditorBean() {}

   public EditorBean( String name )
   { = name;
   public String getName() {
      return name;
   public void setName( String name ) { = name;

Do you Yahoo!?
Free Pop-Up Blocker - Get it now

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message