[undertow-dev] Rewrite with parameters in undertow

Dariusz Borowski dariusz.borowski at stylight.com
Fri Jun 27 11:03:49 EDT 2014


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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20140627/c26eb03a/attachment.html 


More information about the undertow-dev mailing list