struts2 <s:if test="">判断字符串
2013-12-23 13:36
211 查看
刚在项目中,需要页面判断字符串进行css控制,发现struts标签没有像eq这种比较字符串的方法,网上查了下,可以用这个方法比较
<s:if test='%{#request.chanleId=="199"}'>
其中注意的是,外层为单引号,里面为双引号
<s:if test='%{#request.chanleId=="199"}'>
其中注意的是,外层为单引号,里面为双引号
相关文章推荐
- struts2标签 截取字符串 <s:if test=""></if>判断
- mybatis 里面使用<if test=""> 判断,当后台传的值是数字字符串时,怎么处理
- <c:if test="></c:if>判断字符串的长度并部分显示
- 【<if test="takeWay == '0'">】mybatis的if判断有坑
- <s:if test="">标签以动态数据为判断条件
- <c:if test=" ${cppc.hpid==hpcc.id}">条件判断
- 只显示 前100个字 java 实现截取字符串!使用! <c:if test="${fn:length(onebeans.info)>100 }">${ fn:substri
- mybatics中【<if test="takeWay == '0'">】mybatis的if判断
- myBatis查询某个时间区间数据<if test=""> 如何写判断条件,and 里面的内容怎么写?
- <c:if test="">多条件判断
- jsp页面中的<c:if test="">中的<%= %>判断是否相等
- <c:if test=""></c:if>如何判断空(使用例子)
- 【mybatis】IF判断的坑 (实现<if test=" status == 'zhangsan'">)
- <c:if test=""></c:if>如何判断空(使用例子)
- 【mybatis】IF判断的坑 (实现<if test=" status == 'zhangsan'">)
- <c: if test="">判断无效
- MyBatis 判断条件为等于的问题(<if test="type == '1'.toString()"> xxx </if>
- <c:if test />来判定两个字符串是否相等
- Struts2 用 s:if test 判断属性和字符串相等时 注意双引号和单引号的使用
- <c:if test="value ne, eq, lt, gt,...."> 用法