2011-05-10 88 views
0

我在我的jsp頁面中使用了<logic:iterate>標記。呈現<html:radio> struts中的標記

我使用印刷在對象中的內容:

<logic:iterate name="rolesDetailsVO" id="role"> 
<bean:write name="role" property="roleName" /> 

現在我想把這個角色名稱英寸目前我試圖做到這一點使用

<html:radio property="groupName" value='<bean:write name="role" property="roleName" />' /> 

,但它似乎是在生成的html錯誤的BCZ元素被渲染爲

<input type="radio" value="&lt;bean:write name=&quot;role&quot; property=& quot;roleName&quot; /&gt;" name="groupName"> 

任何建議請。謝謝。

回答

1

嘗試用

<html:radio property="groupName" value="${YourForm.property}" />