<div dir="ltr">Hi guys,<div><br></div><div>I&#39;m struggling getting this working. I need to implement rewrite rules in my application. It&#39;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[&#39;^/Women/$&#39;] -&gt; rewrite[&#39;/Gender.action&#39;]</div><div>path-template[&#39;/Gender.action&#39;] -&gt; set[attribute=&#39;%{q,gender}&#39;, value=&#39;women&#39;]</div>
<div><br></div><div>regex[&#39;^/Men/$&#39;] -&gt; rewrite[&#39;/Gender.action&#39;]</div><div>path-template[&#39;/Gender.action&#39;] -&gt; set[attribute=&#39;%{q,gender}&#39;, value=&#39;men&#39;]</div><div><br></div><div>
<br></div><div>In both cases it should hit my &quot;Gender.action&quot;, but with a different parameter!</div><div><br></div><div>It always applies to the last set path-template and the gender is always: &quot;men&quot;....</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>