title: Passing variables from JSP to servlet
body: <p>All the time, when I searched on Google, I got dozen of answers which are posted in Stackoverflow about passing variables to servlet from JSP. 
  But I am wondering, I don't get answer of: <code>How to pass a variable from JSP to a servlet class? Is it possible?</code></p>
  
  <p>Actually I am doing a simple <em>PhoneBook</em> application. Here I have to send contact id to a servlet for editing and deleting. How can I pass this value? </p>
  
  <blockquote>
    <p>I know, we can pass variable from servlet to JSP by using <code>request.setAttribute(key, value)</code>
    But when I used it to set variable in JSP and again get it by using <code>session.getAttribute(key )</code> then result is null. </p>
  </blockquote>
  
  <p>God help me. </p>