Changing that to: <html-el:select property="exportDate"> <html-el:options collection="exportDates" /> </html-el:select>
Now produces this error: 15:55:34,494 ERROR [action]:253 - Servlet.service() for servlet action threw exception javax.servlet.jsp.JspException: ServletException in '/jsp/templates/tab_content_template.jsp': ServletException in '/jsp/fine_export.jsp': No name specified at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTa g.java:923) at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462) at org.apache.jsp.jsp.templates.main_005ftemplate_jsp._jspx_meth_tiles_inse rt_1(org.apache.jsp.jsp.templates.main_005ftemplate_jsp:160) at org.apache.jsp.jsp.templates.main_005ftemplate_jsp._jspService(org.apach e.jsp.jsp.templates.main_005ftemplate_jsp:88) Could it have something to do with not specifying the label or the value as well? Daniel -----Original Message----- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Monday, April 17, 2006 1:52 PM To: Struts Users Mailing List Subject: Re: ArrayList & html:options On 4/17/06, Kalcevich, Daniel <[EMAIL PROTECTED]> wrote: > request.setAttribute( "exportDates", exportDates ); //exportDates = > ArrayList<String> > > JSP: > > <html-el:select property="exportDate"> > <html-el:options collection="${exportDates}" /> > </html-el:select> > > Error: > 15:38:53,106 ERROR [action]:253 - Servlet.service() for servlet action > threw exception > javax.servlet.jsp.JspException: ServletException in > '/jsp/templates/tab_content_template.jsp': ServletException in > '/jsp/fine_export.jsp': Cannot find bean under name [04/17/2006, > 04/16/2006] You don't need the expression in the 'collection' attribute. It wants the _name_ of the bean. You can see from the error message that the String representation of the ArrayList is getting passed into the tag. Try using just: <html-el:options collection="exportDates" /> -- Wendy --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]