wood burning stoves 2.0
The moose likes Struts and the fly likes specify resourcebundle in actionerror Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "specify resourcebundle in actionerror" Watch "specify resourcebundle in actionerror" New topic

specify resourcebundle in actionerror

Lu Jin

Joined: Feb 22, 2003
Posts: 17
In ActionError, how can I specify the resource bundle for the error message? I am working in a system with multiple modules, and each module has its own resource file.

michelle Wang
Ranch Hand

Joined: Jan 12, 2004
Posts: 65
I using action message instead of action error. bcs in struts 1.2.x, a lot methods under action error have been deprecated already.

in my struts-config.xml i write this:
<message-resources parameter="properties.error_messages" null="false"/>

I using tomcat as my app server, so my error_messages.properties is in folder:
C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\UFIBM\WEB-INF\classes\properties\

michelle Wang <br />SCJP 1.4
I agree. Here's the link: http://aspose.com/file-tools
subject: specify resourcebundle in actionerror
It's not a secret anymore!