This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes Arabic font and display style in JSP & PDF reports Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Arabic font and display style in JSP & PDF reports" Watch "Arabic font and display style in JSP & PDF reports" New topic
Author

Arabic font and display style in JSP & PDF reports

Gunasekaran Gajendran
Greenhorn

Joined: Jul 11, 2012
Posts: 5
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
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

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!


[How To Ask Questions][Read before you PM me]
Gunasekaran Gajendran
Greenhorn

Joined: Jul 11, 2012
Posts: 5

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

Joined: Mar 07, 2010
Posts: 1648
    
    7

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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Arabic font and display style in JSP & PDF reports
 
Similar Threads
Reports(urgent)
Synaptris - Interactive Reporting for Java Applications
Reporting solution
how to export PDF report within the Arabic and English data through jsp code.
JSP to PDF