what version of freemarker are you using?

Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.


> Date: Tue, 7 Aug 2012 04:49:32 -0700
> From: lorenzo.bernacchi...@gmail.com
> To: user@struts.apache.org
> Subject: Using action-chaining as alias (URI-rewrite)
> 
> I'm using chain results to produce a URI alias pattern.
> 
> here is a dummy example of laptop searcher
> 
> 
>   {1}
>   laptops.ftl
> 
> 
> to mantain friendly URLs in a spanish-localized domain we want to use the
> keyword "portatiles" instead of "laptops"
> 
> URI can be routed this way
> 
> 
>   {1}/laptops
> 
> 
> ActionSupport will always return SUCCESS and the param "brand" will move
> from one action-name to the other.
> 
> 
> I found this pattern useful when you need many of these aliases (one for
> language) and you want to keep the routing configuration in a single
> segment. All these aliases will act as a URI-rewrite module.
> 
> 
> Is there a better way to achieve this behavior?
> 
> Note: Between versions 2.2.X and 2.3.X Struts introduced an escapeHTML4
> operation to action-names (DefaultActionProxy class) and this pattern no
> longer works (there is a double escaping I can't unescape..)
> 
> 
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://struts.1045723.n5.nabble.com/Using-action-chaining-as-alias-URI-rewrite-tp5710391.html
> Sent from the Struts - User mailing list archive at Nabble.com.
                                          

Reply via email to