ok, i think i have it: in the jsp, the id attribute of iterator tag has to match the name of the indexed property of the form bean.


-- mike

Michael Muller wrote:

more info:


it turns out that the data i was seeing in the form bean was the data that i pre-populated -- data from the form is NOT making in into form bean.

or, more accurately, the INDEXED data is not making it into the form bean. the "action" property is getting set properly.

does anyone have any clues? troubleshooting ideas?

-- mike

Michael Muller wrote:


i have a form with an indexed property. i wasn't able to get any data out of the form. i could see the data in the request parameters, but the data wasn't in the form bean.


in an effort to diagnose, i made an action to populate data into the form. not only was i able to populate data into the form, but suddenly data started showing up in the form bean after the submit.

now i can't take the action away! when i do, all the properties of all the beans in the indexed property of the form bean are null.

help! what's going on?!

-- mike

FROM STRUTS-CONFIG.XML:

<form-bean name="shipmentFormBean"
  type="org.apache.struts.action.DynaActionForm">
<form-property name="action" type="java.lang.String" />
<form-property name="shipments"
  type="com.interactivate.cachandler.ShipmentFormBean[]" size="12" />
</form-bean>

<action path="/data-upload/Shipments"
  forward="shipments.page"
  validate="false"
  roles="data-upl" />

<!--
<action path="/data-upload/Shipments"
  type="com.interactivate.cachandler.Foo"
  name="shipmentFormBean"
  scope="session"
  validate="false"
  roles="data-upl">
<forward name="success" path="shipments.page" />
</action>
-->

<action path="/data-upload/SubmitShipments"
  type="com.interactivate.cachandler.SubmitShipmentsAction"
  name="shipmentFormBean"
  scope="session"
  validate="false"
  roles="data-upl" />




--------------------------------------------------------------------- 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]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to