Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-08 Thread Chris
Thanks Leonidas Hi there, webwork used to have a class that would easily read external sources like xml files, but i do not recall the class name now. If you want to read from simple property files you could use something like : String path =

s:if and locale

2013-09-08 Thread Alireza Fattahi
HI,   I have used the strtuts I18n feature for managing the localization.  The site works fine and the messages are selected from correct resource bundels.   I have this problem   I want to change css base on the user locale. So I use below code in jsp: ** The locale

Re: s:if and locale

2013-09-08 Thread Dave Newton
Is the locale a string? On Sep 8, 2013 7:10 AM, Alireza Fattahi afatt...@yahoo.com wrote: HI, I have used the strtuts I18n feature for managing the localization. The site works fine and the messages are selected from correct resource bundels. I have this problem I want to change css

Re: s:if and locale

2013-09-08 Thread Chris
Hello Please try this expresion and tell us if it works s:if test=%{locale.language == 'en'} You will have to test the locale it in every jsp ? Couldn't you use for example, a global.properties file and struts.xml constant name=struts.custom.i18n.resources value=global /

Re: Inquiry

2013-09-08 Thread Ken McWilliams
It's a good idea to put your action classes into packages. Not on the topic of the question exactly but the long inheritance chain on your action is suspicious. Consider struts2 Interceptors and since you are using Spring inject what you need where you need it. action

Re: s:if and locale

2013-09-08 Thread Chris
Hello , Could you please write how do you define The locale is = ${locale}  //Here the correct locale is displayed! I see in my browser  ( even source code ) The locale is = //Here the correct locale is displayed! Please try this expresion and tell us if it

Using themes with s: select

2013-09-08 Thread Srineel Mazumdar
Hi, I am using s:select to create a dropdown and then checked the html. I wanted to add bgcolor as yellow. I referred to the following link http://struts.apache.org/release/2.2.x/docs/struts-2-themes.html but still not sure how to put the background clour as yellow. Can anyone provide any