2003. janu�r 21. 10:09-kor ezt �rtad:
> Hi,
>
> I am not able to understand from the url what you have sent regarding usage
> of Iterator in struts.
> If you have any sample code of bean and the jsp, could yous send across to
> me ?
There are a lot of example in the struts release.
<logic:iterate id="ubs" name="bean" property="ubsInfo">
<bean:write name="ubs"/>
</logic:iterate>
This works if the bean.getUsbInfo() returns a Vector of Strings. However if
the Vector contains some JavaBean with property oneProp and twoProp, then
this should be written as:
<logic:iterate id="someArbitraryIdIUsedForThisIterator" name="bean"
property="ubsInfo">
<bean:write name="someArbitraryIdIUsedForThisIterator"
property="oneProp"/>
<bean:write name="someArbitraryIdIUsedForThisIterator"
property="twoProp"/>
</logic:iterate>
Tib
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>