title: context.xml vs web.xml in web application
body: <p>I am developing a small web application application. The objective is to create one welcome <code>index.html</code> page with Ajax + one servlet to handle ajax requests.</p>
  
  <p>Although I thought I would be fine with a <code>web.xml</code> only, I don't want to deploy to <code>/</code>, but to <code>/MyApp</code>. NetBeans's project properties offers options to set a context path, which helps me deploying to <code>/MyApp</code>. However, it automatically adds a <code>/META-INF/context.xml</code> file, which is a bit confusing.</p>
  
  <p>My questions are:</p>
  
  <p>1) Do I really need a <code>context.xml</code> file do deploy to <code>/MyApp</code> instead of <code>/</code>?</p>
  
  <p>2) If answer to 1) is no, how to accomplish the same with <code>web.xml</code> only?</p>
  
  <p>3) What is exactly <code>context.xml</code> to <code>web.xml</code>?</p>