[jetty-dev] Web App Context Mapping

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jetty-dev] Web App Context Mapping

prakash mallick
Hi,
   I am having two applications deployed for a specific virtual host with following context

AppA.  
           <New id="r1" class="org.eclipse.jetty.webapp.WebAppContext">
            <Set name="Server"><Ref id="Server" /></Set>
            <Set name="ContextPath">/</Set>
            ............................................
has a servelr mapping for AppA in the form

     servlet-mapping>
<servlet-name>hrServlet</servlet-name>
<url-pattern>/HR/*</url-pattern>
  </servlet-mapping>

AppB.

    <New id="r2" class="org.eclipse.jetty.webapp.WebAppContext">
            <Set name="Server"><Ref id="Server" /></Set>
            <Set name="ContextPath">/HR</Set>

if the request URI is of the form  http://www.xyz.com/HR , which application will serve this request ?

Prakash

_______________________________________________
jetty-dev mailing list
[hidden email]
https://dev.eclipse.org/mailman/listinfo/jetty-dev