struts下应用velocity-toolbox为甚么显示明文
我使用 struts2。06 ,spring2,velocity1.5在windows和freebsd、ubuntu8上都执行正常,当放到centos5上时却显示明文,tomcat和jdk的版本都一样。
struts.property文件:
struts.velocity.toolboxlocation=/WEB-INF/classes/velocity-toolbox.xml
velocity-toolbox.xml文件中包含
<tool>
<key>DATETOOL</key>
<scope>application</scope>
<class>org.apache.velocity.tools.generic.DateTool</class>
</tool>
正常的日期 显示:2009/06/21
不正常的日期 显示:$DATETOOL.format("yyyy/MM/dd hh:mm",$!{diarys.adddate})