title: Getting struts s:url includeparams to work on jboss when deploying as ROOT.war
body: <p>I'm working on a webapp that uses struts 2, spring, <a href="http://code.google.com/p/urlrewritefilter/" rel="nofollow noreferrer">URL Rewrite Filter</a> and a couple of other dependencies that I'm not sure are relevant to this. One of the url's we construct is constructed as follows:</p>
  
  <pre><code>&lt;s:url id="blah" includeParams="get"&gt;
  </code></pre>
  
  <p>This works fine when deploying in jboss as a normal webapp dropped in deploy/. So then all urls are of the form <a href="http://localhost:8080/mywebapp/" rel="nofollow noreferrer">http://localhost:8080/mywebapp/</a>... and when using this tag all the get parameters get included as expected.</p>
  
  <p>However we wish to deploy this code in the root context (so everything ends up under <a href="http://localhost:8080/.." rel="nofollow noreferrer">http://localhost:8080/..</a>.), so we deployed it as ROOT.war. Suddenly, all the get parameters no longer show up in the URL. I've been looking for a while and can't seem to figure out what might cause this. First I thought it was to do with the URL rewriting but it seems to be working fine. Any tips, pointers, further questions for clarification are welcome. To add to the confusion, this all also works fine when deployed in jetty (where root context is the default).</p>
  
  <p>edit: I've also tried removing ROOT.war and using jboss-web.xml to deploy to root context, this exhibits the exact same problem though.</p>