Hi Bernd,
I was in a bit hurry to do my app instead of thinking,
I was trying to do string comparision like
<tc:panel rendered="#{login.user.company.language == "fr"}">
As i used double qt i was getting error, later i tried the same with JSTL if
tag and the same error,
so i posted this message,
but later after a while i tried with
<tc:panel rendered="#{login.user.company.language == 'fr'}">
Now its working fine as i used single qut :)
Thnx for ur quick response
Regards,
madan
----- Original Message ----
From: Bernd Bohmann <[EMAIL PROTECTED]>
To: MyFaces Discussion <[email protected]>
Sent: Saturday, 17 February, 2007 7:40:45 PM
Subject: Re: [Tobago] String comparison in JSP
Hello Madan,
can you describe the use case with more details, please?
Or send the example page in jsp?
Regards
Bernd
madan chowdary wrote:
> Hi All,
>
> I have a page in which i have to display a piece of text .
>
> This text will be displayed in different languages based upon the value set
> in one of my bean propeties.
>
> I placed the whole text in different languages in different panels.
>
> Now based upon the language set for the user, i want to render those panels.
>
> but how can we compare strings in rendered attribute.
>
> the jsp code looks like this
>
> <% if(user.getCompany().getLanguage().equals("fr")) { // French %>
> blah blah blah..
> <% } %>
>
> I need to do the same with Tobago...
>
> How can i achieve this ?
>
> Note : The text is too large, so cant put them in resource bundle
>
> Thnx in advance,
> Madan
>
>
>
>
> __________________________________________________________
> Yahoo! India Answers: Share what you know. Learn something new
> http://in.answers.yahoo.com/
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/