Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

internationalization of jsp pages

  Asked By: Daisy    Date: Dec 13    Category: Java    Views: 1073
  

right noe i m doing internationalization of jsp pages. tell me smart way to isolate all text occurences form jsp pages. or plz reply if u have before

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Adali Fischer     Answered On: Dec 13


if u are using struts just go to resources bundle and append _01 etc to all ur values corresponding to keys using textpad thats it

 
Answer #2    Answered By: Olga Kates     Answered On: Dec 13

you could resource bundle

be caseful, jsp  s should be view portion of the layers, and resource bundle should be separate to fully support I18N.

 
Answer #3    Answered By: Milind Mishra     Answered On: Dec 13

main problem to isolate static text. see i have to find text  occuring in all tags which cen be direct, in out.print ln or alert etc i find that text n right now i m making key by ignoring special chars form  text n replacing spaces by underscores. after that i put the pair key n text in property file n pick it up by resourse bundle getString method. problem if i do manually n jsp  r in 100s then i have to all those ocuurences n make keys n coping n pasing those pairs in property file. i want if u know how to do that work automatiaaly n u have the program for paring on which i m thinking to work out
then plzzz tell me ab that . or there is any other way to inernationalize by using some editor which u know that fulfils my requirements n tell me ab that.
i wnat also some examples which guide how i can internationalize currency , dates n text which is coming form database

 
Didn't find what you were looking for? Find more on internationalization of jsp pages Or get search suggestion and latest updates.




Tagged: