myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From madan chowdary <>
Subject [Tobago] String comparison in JSP
Date Sat, 17 Feb 2007 10:53:59 GMT
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

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,

Yahoo! India Answers: Share what you know. Learn something new
View raw message