File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "specify resourcebundle in actionerror" Watch "specify resourcebundle in actionerror" New topic
Author

specify resourcebundle in actionerror

Lu Jin
Greenhorn

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.


SCJP, SCWCD, SCBCD, OCA, Next-->SCEA
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: specify resourcebundle in actionerror
 
Similar Threads
message resource help!!
Multiple Message Resource File Problem
struts-error
HTML:Errors and Validate woes
Getting values from properties in validate-using multiple message-resources in struts