title: URL Pattern for servlet mapping in web.xml
body: <p>I need a workaround with this URL mapping in web.xml to create URLs with a letter, followed by a &quot;_&quot; followed by any combination of alphanumeric characters.</p>
  <p>I want to map a servlet to something like this:</p>
  <pre><code>/something_*
  </code></pre>
  <p>Instead of:</p>
  <pre><code>/something/*
  </code></pre>
  <p>Using different &quot;somethings&quot; for different JSP's. Example:</p>
  <pre><code>/search_Something-I-searched-for
  </code></pre>
  <p>I tried using:</p>
  <pre><code>  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;MyServlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/something_*&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
  </code></pre>
  <p>But this doesn't seem to work.
  <a href="https://stackoverflow.com/questions/26732/invalid-url-pattern-servlet-mapping-in-tomcat-6-0">This answer</a> tells me I can't do this within web.xml, so maybe there's some workaround.</p>
  <p>I don't know if this information is important, but I'm using JBoss and Struts2 in my project.</p>