Dear Struts2 Community,

 

             Project: Struts 2

              Affects Versions: 2.0.6

         Environment: Glassfish AS Version 40

            Reporter: Ruben Hartenstein

 

we got the following problem in our web app:

In order to internationalize our web app we put some properties into the
language file (package_en.properties) and access these properties in a jsp
like <s:textfield label="%{getText('username')}" . First time the jsp is
loaded, the textfield has no label text. After validating (submit), the jsp
is reloaded and the textfield displays the correct label. I know that the
getText() method is only available if the jsp is loaded after an action. But
before the login.jsp for example there is no action.

Do I have to call a dummy action only to make the getText() method available
or are there better solutions?

 

Do you have an idea how we can solve this problem?

 

Thanks in advance

 

 

 

Mit freundlichen Grüßen

 

Ruben Hartenstein

Platinum Consulting Group GmbH

Opelstrasse 8a

D-68789 St. Leon-Rot

 

Tel.: +49 (0)6227 35817 25

Mobil: +49 (0)176 27352330

Mail: [EMAIL PROTECTED]

 

Reply via email to