You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by RamKumar <ra...@tarangtech.com> on 2004/07/18 09:35:02 UTC

populating html:select using string[]

Hi All,
      I am a newbie to struts. I want to populate a list box using String[]. This is the code i used in my jsp

<html:select name="FileImportForm" property="fileHeaders" size="20" styleClass="tasklist1">
        <html:options name="FileImportForm" property="fileHeaders" labelProperty="fileHeaders"/>
</html:select>

fileHeaders is a String[] object.  When i tried to execute the above,
 i am getting the following exception

javax.servlet.jsp.JspException: Property fileHeaders returned a null value
	org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTag.java:416)
	org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:294)


any clues?

thanks
Ram