• Post Reply Bookmark Topic Watch Topic
  • New Topic

Internationlization JSP Labels  RSS feed

 
rambabu ravuri
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everybody,

any thoughts and suggestion on this would be great.

I have an existing application which was created for
North American Customers. Now I have to internationalize
it using ResourceBundles.

Now the problem is jsp Labels!

All labels are already hard coded into JSP pages.

To internationalize I will have to copy all these labels
into resource bundle and use a 'component' to dynamically
read these key values from the resource bundle and display
on JSP page. [component will be Locale sensitive]

The only solution I have right now is to manually
copy all these labels into resource bundle and then
change all the lables in all JSP pages (>100) with
something like

<%=I18NMessage.getString(label)%>

This is a easy and mundane solution [I thinks]. Can any one
suggest me a better solution. May be I can use some existing
parsers to programmatically edit all the JSP pages.

Thanks,
ram
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66144
144
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No automation that I am aware of. But if you want a standardized solution, check out the fmt tags of the JSTL.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!