title: How to get ContextPath in init() method of Servlet version 2.4
body: <p>I'm using version 2.4 of <code>Servlet</code> and I need to get the <code>ContextPath</code> through the <code>init()</code> method  which is called on server start, so I don't have any <em>Request object</em> that could call <code>getContextPath()</code> and because the Servlet version I do not have <code>getContextPath()</code> method in the <code>ServletContext</code> either.</p>
  
  <p>Is there a way to get this <code>ContextPath()</code> somehow ?</p>