Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Multilingual web application in struts

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to implement one multilingual application in struts using hibernate or SQL as database..

but i am not getting the correct way from where should i start implementation.because there are many ways to implement multilingual application like using jstl we can get values from properties file, or we can keep all translated content in database such as for english content we will keep in that particular db or for german we will keep in german table..
Again i am not getting how should i change images as language changes..

please help me out.. i am really stuck because of this questions in my mind...
 
Sheriff
Posts: 6746
1278
IntelliJ IDE jQuery Eclipse IDE Postgres Database Tomcat Server Chrome Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use either format. I prefer using .properties files so you can change make any corrections easily. For images, you can include the image file names in the .properties file, and use them later for displaying the proper image for the selected language.
 
Sheriff
Posts: 22055
113
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to our Struts forum.
 
asha Sharma
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know we can use property files but again my question is same..
because when user enters some data then how should we validate and get corresponding output from database or from property files ,in english,french or german languages..


and tell me which is the efficient way :1>property files or
2>database

 
Devaka Cooray
Sheriff
Posts: 6746
1278
IntelliJ IDE jQuery Eclipse IDE Postgres Database Tomcat Server Chrome Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Asha,
Language rendering should be implemented in the front tier and should be separated from the back-end components. If you have some language-specific validations or parsing logic, then you can implement them in a more appropriate tier. Efficiency between .properties files and database records is not significant here, as you don't have to re-fetch them over and over.

Rob Prime wrote:Moving to our Struts forum.


Seems not that Strusty
Moving back to JiG.
 
asha Sharma
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks i am getting your point..
but as i don't have that much of knowledge regarding multilingual development can you please suggest me any book or link so that i can implement it in java (struts).

i am not getting from where should i start implementation. as i don't have complete knowledge foolish doubt are arising in my mind.

please let me know soon because i want to implement this application very soon..
 
Because those who mind don't matter and those who matter don't mind - Seuss. Tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic