首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

struts2 <s:if></s:if>标签与freemarker<if></#if>判断设立radio框的c

2012-09-10 
struts2 s:if/s:if标签与freemarker#if/#if判断设置radio框的checked属性test.jsp页面input type

struts2 <s:if></s:if>标签与freemarker<#if></#if>判断设置radio框的checked属性
test.jsp页面

<input type="radio <s:if test="combination.timebound==0">checked</s:if> value="1"/>一年
<input type="radio" <s:if test="combination.timebound==1">checked</s:if>value="3"/>三年

其用法和freemarker<#if></#if>类似:下面是test.ftl页面写法

<input type="radio" <#if combination.timebound==0>checked</#if> value="1">一年
<input type="radio" <#if combination.timebound==1>checked</#if> value="3">三年

热点排行