Hi guys,

I'm struggling getting this working. I need to implement rewrite rules in my application. It's somehow working. What I do have, is:

undertow-handlers.conf under /WEB-INF/


trying to do simple rule:


regex['^/Women/$'] -> rewrite['/Gender.action']
path-template['/Gender.action'] -> set[attribute='%{q,gender}', value='women']

regex['^/Men/$'] -> rewrite['/Gender.action']
path-template['/Gender.action'] -> set[attribute='%{q,gender}', value='men']


In both cases it should hit my "Gender.action", but with a different parameter!

It always applies to the last set path-template and the gender is always: "men"....

How can I pass different parameters to the same Action?

Thanks!





--

Dariusz Borowski

STYLIGHT

+49 (0) 89 - 1222 895 - 0
+49 (0) 89 - 1222 895 - 48
dariusz.borowski@stylight.com
http://www.stylight.com/


Join us on Facebook: http://www.facebook.com/stylight
Follow us on Twitter: http://www.twitter.com/stylight
Follow us on Instagram: http://instagram.com/stylight