You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Michael Lee <ml...@hotmail.com> on 2002/09/12 18:03:26 UTC
html:options question
I want to populate an <html:select> with data from a Map (HashMap). I have
...
<% pageContext.setAttribute("allUserRoles", Lookup.getData(Constant.USER.USER_ROLES)); %>
...
<bean:message key="prompt.user.role"/>
<html:select property="userRole" size="1">
<html:options collection="allUserRoles"/>
</html:select>
I don't see an example in the struts-exercise-taglib.war under html:select
It is vector or Object[].
Ideas?
thanks,
Mike