struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Friedli Beat [UFA AG Her]" <Beat.Frie...@ufa.ch>
Subject AW: How to test only for the language-code but not for the countr y?
Date Wed, 12 Sep 2001 15:23:47 GMT
<bean:message>  sounds good to me but I have a whole page of just HTML to
include an I don't want to put it in my ressource-file
I would need a Tag like this:
 
<bean:message language="fr">  
    .
    .
    Here would stand a whole user-manual of pure HTML with many lines
    .
    .
    .
</bean:message>  
 
Is this possible? 
 
 
Thanks
 
Beat Friedli 

----------------------------------------------------------------------------
-- 


-----Urspr√ľngliche Nachricht-----
Von: Gregor Rayman [mailto:grayman@gmx.net]
Gesendet: Mittwoch, 12. September 2001 12:43
An: struts-user@jakarta.apache.org
Betreff: Re: How to test only for the language-code but not for the country?


Use <bean:message> for this purpose. Not <logic:equal>.

----- Original Message ----- 
From: Friedli Beat  <mailto:Beat.Friedli@ufa.ch> [UFA AG Her] 
To: 'struts-user@jakarta.apache.org'
<mailto:'struts-user@jakarta.apache.org'>  
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 


Mime
View raw message