This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Internationalization of display tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Internationalization of display tag" Watch "Internationalization of display tag" New topic
Author

Internationalization of display tag

Krish Khan
Ranch Hand

Joined: Dec 14, 2009
Posts: 46
Hello every one I am using Structs 1 frame work and i use display tag now i need to internationalize all the column headers to thai language.

can any one help me to explain me how to use step by step.

My JSP




Thank You!
Krish Khan
Ranch Hand

Joined: Dec 14, 2009
Posts: 46
Hey every one i have found the solution :

I found the solution...

First create a display.properties file in WEB-INF/classes folder and then paste this line into that file
locale.provider=org.displaytag.localization.I18nStrutsAdapter

Then declare that cloumn name as tittleKey
eg:


then declare in the translation in resource file as usual.

Its working... for struts 1

Have a try gud luck!
 
Consider Paul's rocket mass heater.
 
subject: Internationalization of display tag
 
Similar Threads
Using Displaytag, Checkboxes and Struts to get values - I'm a bit lost
How to pass multiple parameters. Displaytag row value not changing on dynamic link
error onclick of radio button inside display tag
maintin checkbox stauts during paginatin(dispalytag)
pagination problem