我在jsp页面中用displaytag显示列表,列表中有年月的显示,我想要能够截取出
<display:table name="listProductPriceDTO" export="false" id="row" cellspacing="0" rules="all" class="sssp" style="width:100%;border:0px solid #A1CCEE;text-align: center;">
<display:column property="productPrice.month" title="年" />
<display:column property="productPrice.month" title="月" />
</display:table>这样写 显示出来的是一串 Mon Apr 09 00:00:00 CST 2012
能否就在页面中写些脚本,进行转换,截取出年,月
<display:table name="listProductPriceDTO" export="false" id="row" cellspacing="0" rules="all" class="sssp" style="width:100%;border:0px solid #A1CCEE;text-align: center;">
<display:column property="productPrice.month" title="年" />
<display:column property="productPrice.month" title="月" />
</display:table>这样写 显示出来的是一串 Mon Apr 09 00:00:00 CST 2012
能否就在页面中写些脚本,进行转换,截取出年,月
解决方案 »
- 启动jboss后,访问http://localhost:8080/出错
- <s:if> 比较Integer类型对象
- 项目中标签需要统一吗?
- 各位大哥有没有谁做过多张图片同时上传的例子
- 问个Struts <html:form>标记的问题!
- 闲评J2SE 1.5的部分新特性
- 有谁知道如何测试实体bean的本地接口??
- 【高分求助】 iReport做好的报表怎么样和JB的程序连接?分不够可另加
- 如果安装LINUX的话,应该选择什么版本?
- struts.xml中result可以设置转发到一个action么??
- 最简单的hibernate程序运行出错
- sturts2 iterator 遍历输出时只重复输出最后一条记录
var year= sysdate.getFullYear()//取得年
var month =sysdate.getMonth()+1//取得月