• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

i18n fun with jstl. Includes a war file.

 
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am pretty much out of ideas on what is wrong. Here is the i18n issue -

I have a resource bundle, all of the files are in their native encodings. If I drop the native file into my web browser, I see the proper international characters/symbols.

I have a simple jsp, which uses the jstl fmt tag. When I run it, I get the wrong characters on the output page. The funny thing is, the browser identifies the character encoding properly, just like when I dropped the original file.

I don't know how to attach a file here, but I'll provide a link to a super simple war file.

myjstl.war

You will need to have the Asian fonts installed as well as Russian to look at the files.

Why aren't the letters showing up properly in the jsp? I tried encoding the files into utf-8, but that didn't do anything. Is there a Tomcat setting I need to look at or maybe something in my web.xml file?

Regards,
Aaron R>
[ May 21, 2004: Message edited by: Aaron Roberts ]
 
Aaron Roberts
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did another test. I copied the properties files from the resource bundle into the root of the webapp. If I view the page via tomcat, directly requesting the entire file, it works. This is really baffling me. What is going on with the fmt tag that 'goofs' things up?

Any ideas?

Regards,
Aaron R>
 
Aaron Roberts
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is this super boring and that's why no ones responding? Can anyone point me to a reference they've used at least?

Regards,
Aaron R>
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic