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.