On 10/17/2003 09:56 PM Ruth, Brice wrote:
Greetings, all.

I'm looking for some guidance on how best to go about a requirement I have from our marketing as far as URL naming goes. We're developing an international (localized) site and we have a requirement that the URLs look something like this:

domain/us/<whatever>
domain/fr/<whatever>
domain/de/<whatever>
etc.

Now, I have a pretty decent grasp on how I'm going to use the localization features of Tiles and Struts to localize the site, but how best do I go about fulfilling the requirement outlined above?

Hi Brice,
first thing you've got to decide is whether you are going to select that locale based on their browser settings, or whether you are going to show them the default locale first and let them click on their chosen flag.


You also don't say if you have all your localized text in resources files, or whether you also have large amounts of text in static files, one language per file.

I tried to remember whether you can use wild cards in your action mapping paths in struts-config.xml, but I can't get my brain in gear right now.

So if you can, map your actions like so "/*/*/whatever.do" but if not, then you might have to repeat the whole mapping for each locale.

Fortunately the servlet mapping to the struts action servlet definitely takes wildcard characters, so *.do will match all your locale URLs.

Have fun,
Adam
--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to