Title: How to test only for the language-code but not for the country?
Use <bean:message> for this purpose. Not <logic:equal>.
----- Original Message -----
Sent: Wednesday, September 12, 2001 11:22 AM
Subject: How to test only for the language-code but not for the country?

I want to test the Accept-Language and show a french message if the user speaks french.

But the following code doesn't take care of the Accept-Language fr-ch.

<logic:equal value="fr" header="Accept-Language">
  Welcome french
</logic:equal>

And this code doesn't take care of the Accept-Language fr-ch.

<logic:equal value="fr-ch" header="Accept-Language">
  Welcome french
</logic:equal>

Do I have to write my own tag? Has anybody allready an apropriate tag?

thanks

Beat Friedli

Reply via email to