There is a DB driven resource bundle on struts.sf.net.

Sebastien Flacher wrote:

Hi Linus,



As a single textfile is used, when there are several thousand entries it
will become difficult to manage.



this link has details on Resource Bundles inheritance http://developer.java.sun.com/developer/technicalArticles/Intl/ResourceBundles/

So far I find the Struts framework pretty good in terms of response time
on JSP pages loaded with <bean:message key="app.text"/>
I am not sure about the implementation details.

If the Locales you need at contained into ISO-8859-1
you shouldn't have much problems.

If not, both reading incoming Form data & outputing dynamic
has interesting challenges.
Let me know if you need help with these.

Seb.


"Linus Nikander" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]


I'm pretty new to Struts usage so it might be i'm overlooking an obvious
solution to this. The thing I've been looking at Internationalization


issues


concerned with Struts. The thought of being able to change the whole
language of a site simply by changing the locale of the user really


appeals


to me. All examples i've seen so far use parallel versions of the
ApplicationResources.properties file to accomplish this. Whilst this may


be


feasibel for a fairly small site I don't see how this solution would hold


up


for a large site (with serveral hundred concurrent requests to anyone of
several thousand pages).

The problems/questions I can see are:

As a single textfile is used, when there are several thousand entries it
will become difficult to manage.
Can updates be made, during operation, to the contets. What happens if a
user requests the files content while it is being edited ?
Is the textfile cached for performance, or will concurrent calls compete


for


the same file-resource ?

As I'm probably not the first person who is trying to use Struts on a


larger


scale for internationalization issues I thought someone might have a


better


solution. Suggestions ?

//Linus Nikander - [EMAIL PROTECTED]



-- Vic Cekvenich, Struts Instructor, 1-800-917-JAVA

Advanced <a href ="baseBeans.com">Struts Training</a> and project recovery in North 
East.
Open Source <a href ="baseBeans.com">Content Management</a>  basicPortal sofware
Best practice<a href ="baseBeans.com">Struts Support</a> v.1.1 helper ScafflodingXPress




Reply via email to