I'm new to struts and would like to get a handle on a few things.  I 
made certain to search the archives for an answer to my current problem, 
but was unable to find an answer.  So I post my question here.

I have an ActionForm in which I added a method that queries a database 
and gets a name/id pair and adds them to a hashtable.  On creation of 
the form(in the JSP associated with the ActionForm class) I want to 
populate a combobox on the form with values from the hashtable.  Here's 
what I tried, and the results of the code:

JSP
   <html:select property="customer" size="1">
       <html:options property="customers"/ labelName="value" 
labelProperty="key">
   </html:select>

ActionForm
public Hashtable getCustomers(){
   // query database, build hashtable
   return hash;
}

The ActionForm is a request scope bean, as specified in struts-config. 

Here's the error I get:
javax.servlet.jsp.JspException: Cannot find bean exportForm in scope request
   at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:486)
   at org.apache.struts.taglib.bean.DefineTag.doStartTag(DefineTag.java:200)
   at jsp_servlet._content._managerstart._jspService(_managerstart.java:297)
   at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
   at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:213)
   at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:246)
   at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1265)
   at 
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1622)
   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

Reply via email to