请教高手,为什么就是显示不出来???
在action类中
ActionErrors errors = new ActionErrors();
errors.add("errorTest",new ActionError("error.test"));
saveErrors(request, errors);
return new ActionForward(actionMapping.getInput());
..........
文件设置如下:
struts\WEB-INF\classes\ApplicationResources.properties
ApplicationResources.properties中有
error.test=this is a test!
config-struts.xml中已加上
<message-resources parameter="ApplicationResources" />
web-config.xml中也加上了
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>
jsp页面中使用<html:errors/>来显示错误信息,可是总也没显示出来,但也不报错,不知道为什么?搞了一天,论坛上也搜了个遍,实在是没办法了,望哪位高手来帮帮忙,感激不尽!!