Firstly, you really shouldn't post a totally unrelated question in the
middle of a long, off-topic thread that's likely not being followed by
everyone. Post a new topic as a new message, not a reply to something else.
Now, to the question:
Daniel Blumenthal wrote:
So, I'm in the midst of localizing my app, and the first thing that's clear
is that localizing the MessageResources is a snap (pats self on back for
choosing Struts).
My question, though, is whether there's a standard method for choosing one
..jsp or another based on language. Also, is there a standard directory
layout? My guess is that something like this would be indicated:
/myservlet
/pages
/en
/jp
/fr
Is there a simple way of making this happen (with this or some other
directory structure), or do I have to roll my own solution?
Tiles supports doing this. You can set up your base tile definitions,
then add per-locale definitions that override the path to the JSP.
Unless you have substantially different page requirements for each
locale, you'll probably want to look at factoring out just those parts
of each page that need to vary into separate tiles, too, to reduce the
amount of duplication.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]