title: Getting the init parameters in a servlet
body: <p>I am new to servlets. I got the <code>init</code> parameters in DD within the <code>init()</code> method using <code>getInitParameter</code>("name"). I tried a lot from within <code>doGet()</code> method to access the <code>init</code> parameters, but it always returns <code>null</code>.</p>
  
  <p>I tried with </p>
  
  <p><code>getServletContext().getInitParametr("name")</code>  </p>
  
  <p>and with </p>
  
  <p><code>getServletConfig().getInitParametr("name")</code> </p>
  
  <p>but they all return <code>null</code>. Can I get the init parameters in the <code>doGet()</code>?</p>