开发者

Rendering <html:radio> tag in struts

开发者 https://www.devze.com 2023-03-04 22:54 出处:网络
I am using <logic:iterate> tag in my jsp page. I am printing content in object using: <logic:iterate name=\"rolesDetailsVO\" id=\"role\">

I am using <logic:iterate> tag in my jsp page.

I am printing content in object using:

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

Now I want to put this roleName in . Presently I am trying to do this using

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

but it seems to be wrong bcz in generated html the element is rendering as

<input type="radio" value="&lt;bean:write name=&quot;role&quot; property=& quot;roleName&quot; /&gt;" 开发者_开发百科name="groupName">

Any advices please. Thanks.


Try with

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

精彩评论

暂无评论...
验证码 换一张
取 消