This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
for internationalization needs in a SEO content manager software developed with struts2 and running on JBoss 5, I need to map the same package/namespace multiple times, for every language. I'd like to get a way to make different locale pages have permanent links, opposed to the struts2 way in which locale is binded in the session. Example:
I'd like the /portal package (group of struts2 actions) to be mapped not just like /portal but /en/portal, es/portal, ...
index.action must invoke the same action as content returned will be the same (exception localization, of course). I've developed an interceptor that sets locale based on that first "/en" part in the request path.
Of course I can always do:
But that means repeating the same mappings for every package.