You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Claudia Woestheinrich <cl...@vit.de> on 2004/02/20 10:28:41 UTC

Problem to use

Hallo,

I hava a Problem to use <bean: massage key="hallo" />.
When I use a Browser with  language arabien perhaps, my applikation
must use the default value from the
aplication.property. But it shows some values from the
aplication.property and some from the aplication.property_de.

The Browser shows me:
<table border="0" cellspacing="2" cellpadding="2">
      <tr class="kopf">
       <th class="headline">LNo.</font></th>
       <th class="headline">name</font></th>
       <th class="headline">Deckstelle</font></th>
       <th class="headline">SSS/PS</font></th>
       <th class="headline" title="Programm Hannoveraner
Springpferdezucht">
           programs for<br>breeding show<br>jumpers</th>
     </tr>

And the Source Code is:

<table border="0" cellspacing="2" cellpadding="2">
      <tr class="kopf">
       <th class="headline"><bean:message key
="liste.lnr"/></font></th>
       <th class="headline"><bean:message key="selform.lname"
/></font></th>
       <th class="headline"><bean:message key="global.ldstelle"
/></font></th>
       <th class="headline"><bean:message key="liste.pblb"
/></font></th>
       <th class="headline" title="Programm Hannoveraner
Springpferdezucht">
           <bean:message key="seite.phs" /></th>
     </tr>

and the application.property:

global.ldstelle=breeding station
liste.lnr=LNo.
selform.lname=name
seite.phs=programs for<br>breeding show<br>jumpers
liste.pblb=SSS/PS

and the application.property_de:

global.ldstelle=Deckstelle
liste.lnr=Nr.
selform.lname=Name
seite.phs=Programm for<br>Hannoveraner<br>Springzucht
liste.pblb=SSS/PS

You see, the result is a mix of both application.property


What can be wrong?

Thanks Claudia


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


Re: Problem to use

Posted by Dirk Markert <di...@dr-markert.de>.
Hello Claudia,

is there a "global.ldstelle=Deckstelle" line in your aplication.property
after "global.ldstelle=breeding station"? It would overwrite the first
entry.

***************************************************************

CW> Hallo,

CW> I hava a Problem to use <bean: massage key="hallo" />.
CW> When I use a Browser with  language arabien perhaps, my applikation
CW> must use the default value from the
CW> aplication.property. But it shows some values from the
CW> aplication.property and some from the aplication.property_de.

CW> The Browser shows me:
CW> <table border="0" cellspacing="2" cellpadding="2">
CW>       <tr class="kopf">
CW>        <th class="headline">LNo.</font></th>
CW>        <th class="headline">name</font></th>
CW>        <th class="headline">Deckstelle</font></th>
CW>        <th class="headline">SSS/PS</font></th>
CW>        <th class="headline" title="Programm Hannoveraner
Springpferdezucht">>
CW>            programs for<br>breeding show<br>jumpers</th>
CW>      </tr>

CW> And the Source Code is:

CW> <table border="0" cellspacing="2" cellpadding="2">
CW>       <tr class="kopf">
CW>        <th class="headline"><bean:message key
="liste.lnr"/>></font></th>
CW>        <th class="headline"><bean:message key="selform.lname"
/>></font></th>
CW>        <th class="headline"><bean:message key="global.ldstelle"
/>></font></th>
CW>        <th class="headline"><bean:message key="liste.pblb"
/>></font></th>
CW>        <th class="headline" title="Programm Hannoveraner
Springpferdezucht">>
CW>            <bean:message key="seite.phs" /></th>
CW>      </tr>

CW> and the application.property:

CW> global.ldstelle=breeding station
CW> liste.lnr=LNo.
CW> selform.lname=name
CW> seite.phs=programs for<br>breeding show<br>jumpers
CW> liste.pblb=SSS/PS

CW> and the application.property_de:

CW> global.ldstelle=Deckstelle
CW> liste.lnr=Nr.
CW> selform.lname=Name
CW> seite.phs=Programm for<br>Hannoveraner<br>Springzucht
CW> liste.pblb=SSS/PS

CW> You see, the result is a mix of both application.property


CW> What can be wrong?

CW> Thanks Claudia


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



Regards,
Dirk

+------- Quality leads ---------------------------------------+
| Dirk Markert                     dirk.markert@dr-markert.de |
| Dr. Markert Softwaretechnik AG                              |
| Joseph-von-Fraunhofer-Str. 20                               |
| 44227 Dortmund                                              |
+---------------------------------->>>>>>> to success! <<<<<<-+ 


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