You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by 木叶清风-谢 <xs...@qq.com> on 2014/07/15 03:57:32 UTC

Question of properties file

hi!I meet a problem about the properties files.
I discover that the properties won't be loaded automatically unless use  <constant name="struts.custom.i18n.resources" value="global,Register,Package"/> in struts.xml.
I want to know how to configure the struts2 to load Package.properties and (activity_name).properties automatically,notice the <constant name="struts.devMode" value="true" />,the value is true!!!‍

回复: 回复: 回复: Question of properties file

Posted by 木叶清风-谢 <xs...@qq.com>.
https://github.com/xsmyqf/struts_xie_practise‍
notice the package.properties,‍Register.properties,‍Register_es.properties is in the folder: ‍/home/xie/eclipseworkspace/Basic_Struts2_Mvn/src/main/resources/com/xie/web/‍Basic_Struts2_Mvn ‍
I put these files in /home/xie/eclipseworkspace/Basic_Struts2_Mvn/src/main/resources originally.So it don't work.‍






------------------ 原始邮件 ------------------
发件人: "Lukasz Lenart";<lu...@apache.org>;
发送时间: 2014年7月18日(星期五) 中午1:06
收件人: "Struts Users Mailing List"<us...@struts.apache.org>; 

主题: Re: 回复: 回复: Question of properties file



2014-07-18 5:31 GMT+02:00 木叶清风-谢 <xs...@qq.com>:
> I have solved my problem!thank you very much.

Can you share what it was?


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

Re: 回复: 回复: Question of properties file

Posted by Lukasz Lenart <lu...@apache.org>.
2014-07-18 5:31 GMT+02:00 木叶清风-谢 <xs...@qq.com>:
> I have solved my problem!thank you very much.

Can you share what it was?


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


回复: 回复: Question of properties file

Posted by 木叶清风-谢 <xs...@qq.com>.
I have solved my problem!thank you very much.






------------------ 原始邮件 ------------------
发件人: "Lukasz Lenart";<lu...@apache.org>;
发送时间: 2014年7月15日(星期二) 下午3:27
收件人: "Struts Users Mailing List"<us...@struts.apache.org>; 

主题: Re: 回复: Question of properties file



2014-07-15 9:23 GMT+02:00 木叶清风-谢 <xs...@qq.com>:
> I have tried,but it doesn't work

It must be something wrong with your setup, though. What do you use to
build the project and prepare WAR file?
https://github.com/apache/struts/tree/develop/apps/blank/src/main/resources/example


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

Re: 回复: Question of properties file

Posted by Lukasz Lenart <lu...@apache.org>.
2014-07-15 9:23 GMT+02:00 木叶清风-谢 <xs...@qq.com>:
> I have tried,but it doesn't work

It must be something wrong with your setup, though. What do you use to
build the project and prepare WAR file?
https://github.com/apache/struts/tree/develop/apps/blank/src/main/resources/example


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


回复: Question of properties file

Posted by 木叶清风-谢 <xs...@qq.com>.
I have tried,but it doesn't work






------------------ 原始邮件 ------------------
发件人: "Lukasz Lenart";<lu...@apache.org>;
发送时间: 2014年7月15日(星期二) 中午12:54
收件人: "Struts Users Mailing List"<us...@struts.apache.org>; 

主题: Re: Question of properties file



2014-07-15 3:57 GMT+02:00 木叶清风-谢 <xs...@qq.com>:
> hi!I meet a problem about the properties files.
> I discover that the properties won't be loaded automatically unless use  <constant name="struts.custom.i18n.resources" value="global,Register,Package"/> in struts.xml.
> I want to know how to configure the struts2 to load Package.properties and (activity_name).properties automatically,notice the <constant name="struts.devMode" value="true" />,the value is true!!!‍

try using package.properties and check if the both files are in the
same packages as corresponding action class


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

Re: Question of properties file

Posted by Lukasz Lenart <lu...@apache.org>.
2014-07-15 3:57 GMT+02:00 木叶清风-谢 <xs...@qq.com>:
> hi!I meet a problem about the properties files.
> I discover that the properties won't be loaded automatically unless use  <constant name="struts.custom.i18n.resources" value="global,Register,Package"/> in struts.xml.
> I want to know how to configure the struts2 to load Package.properties and (activity_name).properties automatically,notice the <constant name="struts.devMode" value="true" />,the value is true!!!‍

try using package.properties and check if the both files are in the
same packages as corresponding action class


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org