title: Properties file as init-param in web.xml
body: <p>I am migrating a Jsp-servlet based Java project that was hosted in websphere to tomcat. Following init-param is in web.xml inside a filter definition. I moved the properties file src folder which is classpath. How to change the following in the web.xml. Can I define properties file as init-param because most of the answers I saw has used context-param to define properties file. I dont think its an option to me as the existing application needs the properties file to be init-param. </p>
  
  <pre><code>&lt;init-param&gt;
      &lt;param-name&gt;configPath&lt;/param-name&gt;
      &lt;param-value&gt;/pws/WebSphere/AppServer/properties/fyp/filterConfig/filter.properties&lt;/param-value&gt;
  &lt;/init-param&gt;
  </code></pre>
  
  <p>I tried </p>
  
  <pre><code>&lt;init-param&gt;
        &lt;param-name&gt;configPath&lt;/param-name&gt;
        &lt;param-value&gt;classpath:filter.properties&lt;/param-value&gt;
  &lt;/init-param&gt;
  </code></pre>
  
  <p>It did not work.Thank you in advance,</p>