title: Java servlet context root
body: <p>Is it permissible to have multiple entries as the context root of a servlet?</p>
  
  <p>For instance, all Sun examples use a single <code>/catalog</code> or something similar as the context root, but could it be <code>/catalog/furniture</code> as well?</p>
  
  <p>The <a href="http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html" rel="nofollow noreferrer">Servlet 2.4 Specification</a> is not specific here.</p>
  
  <blockquote>
    <p><strong>Context Path</strong>: The path prefix associated with the <code>ServletContext</code> that this servlet is a part of. If this context is the “default”
    context rooted at the base of the Web server’s URL name space, this
    path will be an empty string. Otherwise, if the context is not rooted
    at the root of the server’s name space, the path starts with a’/’
    character but does not end with a’/’ character.</p>
  </blockquote>