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...
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.
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
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.