Re: conflict between message.properties for multiple Struts war files

2013-08-29 Thread Lukasz Lenart
2013/8/26 Omar Ngarigari ngarigar...@yahoo.com:
 Yes, I am using the shared Stutrus2 libs jar files.

Still strange as classloaders should be different ...


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

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



Re: conflict between message.properties for multiple Struts war files

2013-08-26 Thread Lukasz Lenart
2013/8/16 Omar Ngarigari ngarigar...@yahoo.com:
 No, All these WAR files are separate. I renamed the message.properties for 
 App1 as you suggested app1-message.properties, but did not rename the other 
 properties files. but the problem is still there when I run the App1.

Strange, does it mean you have configured container to somehow reuse
the same class loader for each WAR? Or do you use shared S2 libs?

 I understand that you want me to rename all the properties files as you 
 suggested. But what the reason behind?

Yes and the reason is the simplest solution as it looks like you have
very specific setup.


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

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



Re: conflict between message.properties for multiple Struts war files

2013-08-26 Thread Omar Ngarigari
Yes, I am using the shared Stutrus2 libs jar files.





 From: Lukasz Lenart lukaszlen...@apache.org
To: Struts Users Mailing List user@struts.apache.org 
Sent: Monday, August 26, 2013 9:11 AM
Subject: Re: conflict between message.properties for multiple Struts war files
 

2013/8/16 Omar Ngarigari ngarigar...@yahoo.com:
 No, All these WAR files are separate. I renamed the message.properties for 
 App1 as you suggested app1-message.properties, but did not rename the other 
 properties files. but the problem is still there when I run the App1.

Strange, does it mean you have configured container to somehow reuse
the same class loader for each WAR? Or do you use shared S2 libs?

 I understand that you want me to rename all the properties files as you 
 suggested. But what the reason behind?

Yes and the reason is the simplest solution as it looks like you have
very specific setup.


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

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

Re: conflict between message.properties for multiple Struts war files

2013-08-16 Thread Omar Ngarigari
No, All these WAR files are separate. I renamed the message.properties for App1 
as you suggested app1-message.properties, but did not rename the other 
properties files. but the problem is still there when I run the App1. 

I understand that you want me to rename all the properties files as you 
suggested. But what the reason behind?

Thanks,






 From: Lukasz Lenart lukaszlen...@apache.org
To: Struts Users Mailing List user@struts.apache.org 
Sent: Friday, August 16, 2013 1:32 AM
Subject: Re: conflict between message.properties for multiple Struts war files
 

All these WARs are part of the same EAR? Or they just separated WARs?
You can define a constant struts.custom.i18n.resources in struts.xml
for each WAR:

constant name=struts.custom.i18n.resources value=app1-message/

and then put your app.title in app1-message.properties and so on for the rest.


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

2013/8/15 Omar Ngarigari ngarigar...@yahoo.com

 I have three different applications that were developed using Struts2 
 framework. I deployed three different war files on the JBoss AS6. But, now I 
 am having problem with global message.properties files. Each war file has its 
 own message.properties file.

 message.properties file for the App1.war consists of

 app.title=State Database

 message.properties file for the App2.war consists of

 app.title=Agency Database

 message.properties file for the App3.war consists of

 app.title=Database Status Report

 In JSP file for the App1.war there is s:text name=app.title/ application 
 title

 In JSP file for the App2.war there is s:text name=app.title/ application 
 title
 In JSP file for the App3.war there is s:text name=app.title/ application 
 title

 When I run the App1, I see Agency Database as App1 title.
 When I run the App2, again I see Agency Database as App2 title.
 When I run the App3, again I see Agency Database as App3 title.

 Any idea how to resolve the conflict?

 Thanks in advance

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

Re: conflict between message.properties for multiple Struts war files

2013-08-15 Thread Lukasz Lenart
All these WARs are part of the same EAR? Or they just separated WARs?
You can define a constant struts.custom.i18n.resources in struts.xml
for each WAR:

constant name=struts.custom.i18n.resources value=app1-message/

and then put your app.title in app1-message.properties and so on for the rest.


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

2013/8/15 Omar Ngarigari ngarigar...@yahoo.com

 I have three different applications that were developed using Struts2 
 framework. I deployed three different war files on the JBoss AS6. But, now I 
 am having problem with global message.properties files. Each war file has its 
 own message.properties file.

 message.properties file for the App1.war consists of

 app.title=State Database

 message.properties file for the App2.war consists of

 app.title=Agency Database

 message.properties file for the App3.war consists of

 app.title=Database Status Report

 In JSP file for the App1.war there is s:text name=app.title/ application 
 title

 In JSP file for the App2.war there is s:text name=app.title/ application 
 title
 In JSP file for the App3.war there is s:text name=app.title/ application 
 title

 When I run the App1, I see Agency Database as App1 title.
 When I run the App2, again I see Agency Database as App2 title.
 When I run the App3, again I see Agency Database as App3 title.

 Any idea how to resolve the conflict?

 Thanks in advance

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