<s:set name="nowTime" value="new java.util.Date()" /> <s:iterator var="row" value="list" > <div id="div_keyword_${row.keyWordId}"> <div class="demo4_t"></div> <div class="demo4_c"> <div class="listdl2"> <div class="listdltitl2 fl"> <a href="javascript:oneshowkey('${row.keyword}');">${row.keyword}</a> </div> <div class="fr ltdttxt2"> 匹配度 </div> <div class="cl"></div> <dl class="fl"> <dt class="dttxt"> 时间来源: </dt> <s:if test="#row.status == 'active'"> <s:if test="#row.effectiveEnd.getTime() <= #nowTime.getTime()"> <dd id="ddtxt2_${row.keyWordId}" class="ddtxt2" > 过期 </dd> </s:if> <s:else> <dd id="ddtxt2_${row.keyWordId}" class="ddtxt2" style="width: auto;" > ${row.effectiveStart} ~ ${row.effectiveEnd} </dd> </s:else> </s:if>
详细解决方案
struts标签判断日期是不是过期
热度:106 发布时间:2012-10-29 10:03:53.0
相关解决方案
- struts HTTP Status 500解决办法
- Struts-config.xml配置action-地图pings元素略计
- Struts-config.xml配置文件《action-地图pings》元素的详解
- 404,500跳转到登录页面,疏失:The Struts dispatcher cannot be found
- java struts 文件上载
- struts hibernate 测试小例子 不报错 但数据库没反应 求分析项目在小弟我的资源里面
- 求SSM分页 struts +spring+mybatis 给小弟我发个学习学习吧 多谢大神们
- 关于 jsp struts-tag <c:if> 判断有关问题
- struts+spring+mybatis出现错误(java.lang.ClassNotFoundException: Entity)为提示位置
- 求解 struts+spring+mybatis sqlsession为空 debug发现没有执行set方法 检查配置好像没有关问题
- struts + hibernate 后台页面修改数据后,前台页面显示的内容新旧数据交替出现。请高手帮忙分析上原因
- struts+spring+hibernate 开发,在action层调用service层接口,结果替null 注入失败,需高手帮忙
- 有个有关问题,请各位帮忙看看:java.lang.ClassNotFoundException: org.apache.struts.action.Act
- struts.xml资料中的namespace"/"当在/后加东西时没起作用
- 生手求教,dwr+struts+spring 页面跳提示框error
- struts checkbox 页面显示
- Servlet struts is not available要如何解决
- struts+hibernate数据库链接池有关问题
- JSP运行异常 STRUTS + SQL SERVER 2005
- Struts 国际化 i18N properties 数据动态,该如何处理
- struts hibernate,该如何处理
- struts2 重定向有关问题(struts.xml)
- struts.xml有关问题
- struts.xml跳转有关问题
- 一声,struts中,struts.xml和struts-config.xml是不是一样
- struts 2.18客户端证验不能编译
- struts+jfreechart,路径有关问题
- struts action 提交有关问题
- 關於javascript 呼叫 struts action 問題解决方法
- 求1 struts 2+hibernate+spring整合好的项目