• 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
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Arabic font and display style in JSP & PDF reports

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Every one:

I want to develop a spring based web application that should support English and Arabic.

Please advise me how to develop the JSP and PDF reports.

Thanks
Guna
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Take a look at Spring's internationalization support.

http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/beans.html#context-functionality-messagesource

Welcome to the Ranch!
 
Gunasekaran Gajendran
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Thanks Bill,

Please suggest about storing/displaying arabic fonts in database and PDF/Excel Report.

Also,

which is best way to handle the JSP that should develop two jsp pages for English and Arabic. Because Arabic display style is right to left in the page content


 
Bill Gorder
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check out Apache Tiles. You will need different layout based on localization. Spring has a tiles view resolver.

http://tiles.apache.org/tutorial/advanced/l10n.html

Messages or text that need to be displayed in different languages should be put in the properties files as was described in my previous link, not in the database. I don't know anything about how you are generating your PDF or Excel reports but its not Spring related so I am afraid I cannot help you there beyond the fact that Spring can read in any of the messages you have by a provided locale. These can be used in your report generation as well (It is not just restricted to JSP's)

Good Luck!
 
reply
    Bookmark Topic Watch Topic
  • New Topic