title: Jersey web.xml file <init-param>
body: <p>I am new to <code>REST</code> services using <code>Jersey</code>.</p>
  <p>My project is entitled: <code>cs9322.simple.rest.books.resources</code></p>
  <p>I have question regarding the <code>web.xml</code> file which contains the following parts:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;init-param&gt;
     &lt;param-name&gt;com.sun.jersey.config.property.packages&lt;/param-name&gt;
     &lt;param-value&gt;cs9322.simple.rest.books.resources&lt;/param-value&gt;
  &lt;/init-param&gt;
  
  &lt;servlet-mapping&gt;
     &lt;servlet-name&gt;Jersey REST Service&lt;/servlet-name&gt;
     &lt;url-pattern&gt;/rest/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  <p>I find that even if I change:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;param-value&gt;cs9322.simple.rest.books.resources&lt;/param-value&gt;
  </code></pre>
  <p>TO</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;param-value&gt;cs9322.simple.rest.books&lt;/param-value&gt;
  </code></pre>
  <p>I still have to access the service through the <code>URL</code>: <code>cs9322.simple.rest.books.resources/rest/*</code></p>
  <p>I don't understand what <code>&lt;param-value&gt;cs9322.simple.rest.books.resources&lt;/param-value&gt;</code> refers to exactly, because it seems that the <code>base url</code> for the service is always the <code>project name</code> and isn't influenced by <code>&lt;param-value&gt;</code>.</p>
  <p>Could someone please explain to me what <code>&lt;param-value&gt;</code> refers to?</p>
  <p>Thank you for your help.</p>