Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

specify resourcebundle in actionerror

 
Lu Jin
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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\
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic