| 发表于:2008-01-15 23: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 也是没有解决 |
|
|
|
|