<div dir="ltr">Hi guys,<div><br></div><div>I'm struggling getting this working. I need to implement rewrite rules in my application. It's somehow working. What I do have, is:</div><div><br></div><div>undertow-handlers.conf under /WEB-INF/</div>
<div><br></div><div><br></div><div>trying to do simple rule:</div><div><br></div><div><br></div><div><div>regex['^/Women/$'] -> rewrite['/Gender.action']</div><div>path-template['/Gender.action'] -> set[attribute='%{q,gender}', value='women']</div>
<div><br></div><div>regex['^/Men/$'] -> rewrite['/Gender.action']</div><div>path-template['/Gender.action'] -> set[attribute='%{q,gender}', value='men']</div><div><br></div><div>
<br></div><div>In both cases it should hit my "Gender.action", but with a different parameter!</div><div><br></div><div>It always applies to the last set path-template and the gender is always: "men"....</div>
<div><br></div><div>How can I pass different parameters to the same Action?</div><div><br></div><div>Thanks!</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div>-- <br><p> <span style="font-family:arial,helvetica,sans-serif;font-size:small"> Dariusz Borowski <br>
<br> STYLIGHT </span> </p><p> <span style="font-family:arial,helvetica,sans-serif;font-size:small"> +49 (0) 89 - 1222 895 - 0 <br> +49 (0) 89 - 1222 895 - 48 <br> <a href="mailto:dariusz.borowski@stylight.com" target="_blank">dariusz.borowski@stylight.com</a> <br>
<a style="font-family:arial,helvetica,sans-serif;font-size:small" href="http://www.stylight.com/" target="_blank"> http://www.stylight.com/ </a> </span></p><p> <span style="font-family:arial,helvetica,sans-serif;font-size:small"> <br>
Join us on Facebook: <a href="http://www.facebook.com/stylight" target="_blank">http://www.facebook.com/stylight</a> <br> Follow us on Twitter: <a href="http://www.twitter.com/stylight" target="_blank">http://www.twitter.com/stylight</a> <br>
Follow us on Instagram: <a href="http://instagram.com/stylight" target="_blank">http://instagram.com/stylight</a></span></p><p> <span style="font-family:arial,helvetica,sans-serif;font-size:small"> </span></p>
</div></div>