wood burning stoves 2.0*
The moose likes Struts and the fly likes struts.custom.i18n.resources - change location propertie file 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 "struts.custom.i18n.resources - change location propertie file" Watch "struts.custom.i18n.resources - change location propertie file" New topic
Author

struts.custom.i18n.resources - change location propertie file

Adriano Anderson
Greenhorn

Joined: Apr 13, 2007
Posts: 1
Hi,

I am using struts2 and would like to put my properties files in a path like this WEB-INF/config/properties/i18n, but my application doesn't work in other path, just in root.
I've already put this configuration in my struts.xml:

<constant name="struts.custom.i18n.resources" value="config.properties.i18n.nameofmyfile" />

Is it possible change the default path?

Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: struts.custom.i18n.resources - change location propertie file
 
Similar Threads
Connecting to remote database
struts 2 internationalization not working
can I set the path in my code to refer a properties file?
internationalization & Properties file order (gone south)
Struts 2.1.8 validation.xml & internationalization