You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jeff Caddel <jc...@cox.net> on 2003/06/12 22:27:40 UTC
Struts-EL, DynaActionForm, and HashMaps
Given this xml snippet from struts-config:
<form-bean name="myForm" type="org.apache.struts.action.DynaActionForm">
<form-property name="myMap" type="java.util.HashMap"/>
</form-bean>
and this JSTL snippet: (it prints out the "firstName" of a user bean
stored in the HashMap under the key "mapEntry1")
<c:out value="${myForm.map.myMap.mapEntry1.firstName}"/>
What do I put under the "property" attribute below to cause the
framework to update the "firstName" attribute of the bean stored under
"mapEntry1" with the contents of the textbox when the page gets submitted?
<html-el:form action="/map">
<html-el:text property="<what goes here??>"/>
</html-el:form>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org