struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yasser Zamani <yasser.zam...@live.com>
Subject Re: Error on line 25, column 9 in template/simple/radiomap.ftl
Date Wed, 08 Nov 2017 14:36:14 GMT


On 11/8/2017 3:49 PM, albert kao wrote:
> However, the same error occurred when my jsp page is changed to the
> following.
> Please help. Thanks.
> 
> <s:iterator value="myGoodList">
>    <s:radio theme="simple" name="test" list="#{key:value}"/><br>
> </s:iterator>

I think you want something like

<s:iterator value="myGoodList" status="rowStatus">
    <s:radio theme="simple" name="test" 
list="myGoodList[%{#rowStatus.index}]"/><br>
</s:iterator>

where myGoodList is a List<Map>

If you want to simply show radio buttons list, radio tag can do without 
an iterator e.g.

<s:radio theme="simple" name="test" list="myGoodList"/>

where myGoodList should be a Map.
Mime
View raw message