100分求助, 关于struts2的properties文件中,使用OGNL表达式问题
iq199 2008-01-15 11:20:00 我尝试在globalMessages.properties里面,使用ognl表达式,如下
startDate=xxxxx
endDate=xxxxx
xwork.default.invalid.fieldvalue=${getText(filedName)} yyyyy
执行时出现错误
java.lang.IllegalArgumentException: can't parse argument number getText(filedName)
查看文档
http://struts.apache.org/2.x/docs/localizing-output.html
里面有例子
requiredstring = $\{getText(fieldName)} is required.
但我改成$\getText(filedName)}也报错
搜索了一晚上,没有找到解决方案,但找到一个同样问题的帖子
http://readlist.com/lists/struts.apache.org/user/7/35380.html
也是没有解决