Re: getText() from login.properties but not packages.properties

2010-01-20 Thread Bhaarat Sharma
login.properties has to be mentioned in you struts.properties file as struts.custom.i18n.resources=login Above means that login.properties resides in WEB-INF/classes On Wed, Jan 20, 2010 at 1:47 PM, Emi Lu wrote: > Lukasz Lenart wrote: > >> Please read documentation, everything is explained th

Re: getText() from login.properties but not packages.properties

2010-01-20 Thread Emi Lu
Lukasz Lenart wrote: Please read documentation, everything is explained there. http://struts.apache.org/2.1.8.1/docs/localization.html http://struts.apache.org/2.1.8.1/docs/strutsproperties.html This did not answer my question :( Using package.properties works fine for me. The problem is how

Re: getText() from login.properties but not packages.properties

2010-01-20 Thread Lukasz Lenart
Please read documentation, everything is explained there. http://struts.apache.org/2.1.8.1/docs/localization.html http://struts.apache.org/2.1.8.1/docs/strutsproperties.html Regards -- Lukasz KapituĊ‚a Javarsovia 2010 http://javarsovia.pl

getText() from login.properties but not packages.properties

2010-01-20 Thread Emi Lu
Good morning, I created login.properties that contains "username.required=Username cannot be empty." If I rename this file to packages.properties, the system always return the text message, but if the name is not that, the message never returned. May I know if I want struts2 read login.prop