<s:set name="jobz" value="${mail.sentDate}"/>
<s:date value="#jobz" format="dd/MM/yyyy"/>
我这里可以通过
<s:date value="#jobz" format="dd/MM/yyyy"/>
我这里可以通过
解决方案 »
- java web project 问题?大神救助此问题?
- 一个查询方法问题,求指教
- 求解!小弟初学web 在struts 与hibernate
- DWR返回的数据如何被JSTL&EL调用??
- 如何编写客户段?
- 讨论:在Spring中是否该取消DAO层
- 怎样在JSP调用SERVLET的DOPOST()或DOGET()方法
- 熟悉JTree控件的,请进!
- The method configure() is undefined for the type Configuration
- spring cloud stream 整合rabbitMq的消费者怎样才能设成数据库中的用户?
- struts 1.2 整合 spring时getServlet() 为空
- hibernate问题
但是 <s:set name="jobz" value="${mail.sentDate}"/> 这句就报错了。。
而且我这里貌似写date标签里面不提示 有value这个字段
我把${mail.sentDate} 直接写页面上输出,Tue Feb 26 14:52:46 CST 2008 是没有问题的。 但是 <s:set name="jobz" value="${mail.sentDate}"/> 这句就报错了According to TLD or attribute directive in tag file, attribute value does not accept any expressions 我现在想知道的是,如何把一个bean对象的某个属性,赋值给struts2 的标签里面,貌似这个报错说标签不支持表达式
然后页面el用${句柄.xx }来得到
你把TLD的地址该高点就可以了.
<!-- grab the index (start with 0 ... ) -->
<s:property value="#stat.index" /> <!-- grab the top of the stack which should be the -->
<!-- current iteration value (0, 1, ... 5) -->
<s:property value="top" />
</s:iterator>