title: How is a http request processed by Jboss if I used struts2
body: <p>I am interesting in how's a http request processed by web container like Jboss, supposed there are many <code>war</code> in JBoss, How does Jboss know a request should pass to one of them? And I want to if i had used <code>struts2</code>. How is reqeust finally passed to the <code>Action</code> of struts2 ? Can anybody help me to figure it out ? thanks.</p>
  
  <p><strong>Updated</strong></p>
  
  <p>say you have a same servlet mapping both in A.War and B.War like below . But they are different implement class of <code>HttpServlet</code></p>
  
  <pre><code>    &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;DeployServlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/deploy/*&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>What happen to JBoss http request process order if the url is <code>/deploy/test</code>? </p>
  
  <p><strong>Updated</strong></p>
  
  <p>Let's make a <strong>summany</strong>, When the web container receive the Http Request to a certain resouce(*.html *.jsp etc), web container will choose a war application to process this request base on the context xml (like <code>server.xml</code> in <code>tomcat</code>). then, this war application will choose a servlet which defined in the Web.xml to handle the request firstly... </p>
  
  <p>well, My question: 
  <code>Filter</code> execute Http Request earlier than <code>Servlet</code>?</p>
  
  <p>thanks.</p>