title: Merge DispatcherServlet and MessageDispatcherServlet
body: <p>Is there a way in which we can merge <code>org.springframework.ws.transport.http.MessageDispatcherServlet</code>
  and <code>org.springframework.web.servlet.DispatcherServlet</code></p>
  
  <p>They both are for different purpose, but I want to merge them into one single servlet. So that I can simply put a URL-Matching to <code>/*</code> and every call can go from one servlet.</p>
  
  <p>Below <code>web.xml</code> works fine but I want to change the URL matching for <em>spring-ws</em> to <code>/*</code></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;url-pattern&gt;/*&lt;/url-pattern&gt;
  
  
  &lt;servlet&gt;
      &lt;servlet-name&gt;jsp&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;jsp&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/page&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  
  &lt;servlet&gt;
      &lt;servlet-name&gt;spring-ws&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.springframework.ws.transport.http.MessageDispatcherServlet&lt;/servlet-class&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;transformWsdlLocations&lt;/param-name&gt;
          &lt;param-value&gt;true&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;spring-ws&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p><br>
  Any idea on this?</p>