<html:form action="/helpMe">
   <logic:iterate property="infoItems">

  </logic:iterate>
</html:form>

I assumed that iterate tag would look for a property infoItems on the
formBean for the html:form

But it doesnt?

If the "name" attribute is required then shouldnt it complain against
the TLD?

Rather you have to specify:

<logic:iterate name="compressedInfoForm" property="infoItems">
.....

Now ofcourse I dont like this since now I have this string
"compressedInfoForm" that has
been defined in the struts-config.xml and if I change it there I have to
remember to change
it everywhere.

Is there a better mechanism to get the name of the formBean without
hardcoding?

-Shakeel




--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to