title: Struts2 - have two packages in struts.xml point to dynamic web root
body: <p>First off, please forgive me for my lack of understanding... I'm still learning  :)</p>
  
  <p>I have 2 packages in my struts.xml that extend a base package and I want to be able to access them by typing in my browser something similar to <a href="http://site.com/application/1/ThisAction.action" rel="nofollow noreferrer">http://site.com/application/1/ThisAction.action</a> and /application/2/ThisAction.action (examples).</p>
  
  <p>I created two directories in my webapp folder, named '1' and '2' and I am able to navigate to both packages using the urls above.  What I want to do is actually put my jsps within the jsp directory, instead of webapps.  so instead of my two folders residing inside /webapp, they should reside in /webapp/jsp/.</p>
  
  <p>I tried changing the namespace of the two packages to something like /1/jsp/ instead of simply '/1', but i get nothing.  It just keeps telling me there is no action mapped to that action name.</p>
  
  <p>Does anyone have any insight on how I can accomplish this?  Google's not giving me a lot of help, but it may just be that I'm not searching for the right thing.</p>
  
  <p>Here's a quick sample of what I'm referring to:</p>
  
  <pre><code>    &lt;struts&gt;
      &lt;!-- Base--&gt;
      &lt;package name="base" extends="struts-default" abstract = "true" namespace="/base"&gt;
  
  
  
  &lt;global-results&gt;
     &lt;result name="cancel" type="redirectAction"&gt;CancelAction&lt;/result&gt;
     &lt;result name="close"&gt;closewindow.jsp&lt;/result&gt;
     &lt;result name="error"&gt;/jsp/wizard/GeneralError.jsp&lt;/result&gt;
    &lt;/global-results&gt;
  
  
  
      &lt;/package&gt;
  
      &lt;package name="1" extends="base" namespace="/1"&gt; 
  </code></pre>
  
  <p></p>
  
  <p>
   
  </p>