Remember you need to make sure you name your CSS in a way that the JSP
servlet will parse it, be default using the .jsp extension, otherwise the
conditional code you intended to be executed will just get sent as is to the
browser.

> -----Original Message-----
> From: Vernon Wu [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 27, 2002 12:04 PM
> To: Tag Libraries Users List
> Subject: Re: RE: I18n message tag and CSS
> 
> 
> 
> Hi, Thomas.
> 
> Thanks for the suggestion. I will use the second approach to 
> have locale condition blocks for each language in CSS. 
> Yes, I use an external stylesheet since it is for the whole 
> site pages. 
> 
> regards,
> 
> Vernon
> 
> 
> 9/27/2002 7:57:20 AM, "Gideon, Thomas" 
> <[EMAIL PROTECTED]> wrote:
> 
> >I am assuming you are using an external stylesheet.  If the 
> differences for
> >each class are small you could re-write your CSS file as a 
> JSP and put some
> >conditional blocks in it, with JSTL.
> >
> >If the differences are larger, you could use a conditional 
> block in each of
> >yout JSPs, if there are a few of them, to select different 
> static versions
> >of your external stylesheet, depending on locale.  Or you 
> could combine the
> >two, where you have the target of your external stylesheet 
> link be a JSP
> >which just determines the user's locale and executes a 
> conditional block
> >that imports the correct static stylesheet and returns it 
> inline in the
> >response.
> >
> >Thomas Gideon
> >Sr. Software Developer
> >B2eMarkets
> >
> >301.230.2236  Tel.
> >301.230.2248  Fax.
> >[EMAIL PROTECTED]
> >www.B2eMarkets.com
> >
> >
> >
> >> -----Original Message-----
> >> From: Vernon Wu [mailto:[EMAIL PROTECTED]]
> >> Sent: Friday, September 27, 2002 10:52 AM
> >> To: [EMAIL PROTECTED]
> >> Subject: I18n message tag and CSS
> >> 
> >> 
> >> I use the i18n message tag in my current project. I also use 
> >> CSS to control the consistent look of the site. I run into a 
> >> problem with text font, a font in one language usually 
> >> doesn't make a sense in another language. In the following 
> >> example, a font in English doesn't anything for Chinese.
> >> 
> >> <font  class="TableHeadingFont"><fmt:message 
> key="location"/></font>
> >> 
> >> Does anyone have a solution?
> >> 
> >> Thanks,
> >> 
> >> Vernon
> >> 
> >> 
> >> 
> >> --
> >> To unsubscribe, e-mail:   
> >> <mailto:[EMAIL PROTECTED]>
> >> For additional commands, e-mail: 
> >> <mailto:[EMAIL PROTECTED]>
> >> 
> >
> >--
> >To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> >
> >
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to