struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya Kazakevich" <Ilya.Kazakev...@JetBrains.com>
Subject RE: Handling navigation language in the URL
Date Sun, 08 May 2011 16:35:06 GMT
Hello,

Read about wildcard mapping.
Than you can do:

/**/myAction

And
<property name="language">{0}</property>
 


Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com
"Develop with pleasure!"

-----Original Message-----
From: GF [mailto:ganfab@gmail.com] 
Sent: Saturday, May 07, 2011 12:23 PM
To: Struts Users ML
Subject: Handling navigation language in the URL

Hello i've a site that behave this way:

ContextPath = /myapp

Namespace = /user
Action = view

So, I deploy an application called mypath.war and I handle urls like:

/myapp/user/view.action

I wish to handle "multilanguage" and i wish to handle it in the url,
like /en /de /fr /de and so on.

Since i wrote correctly my application, it is context path
indipendent, so, the most stupid thing to do is to deploy en.war
de.war fr.war and so on.

Of course this is very "stupid" since it would be very memory consuming.

Is there in Java EE a way to deploy ONCE the same .war and making it
to handle multiple context paths? I use Tomcat 6.

I didn't find anything for this.. the only thing I found, causes
anyway a multiple deploy of the same .war

Can you suggest me an alternative approach?
Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message