title: Pass Value by Using Request.setAttribute
body: <p>I am trying to get attribute of spanId and set Attribute by using request. Then I want to pass the output. Although the first input is has value, it still return me null.</p>
  
  <p>Below are my codes. Help will be appreciate! :)</p>
  
  <pre><code>&lt;input id="spanId" name="spanId"&gt;
  
  &lt;%  
      String spanId = request.getParameter("spanId");
       request.setAttribute("spanId",spanId);
  %&gt;
  
  &lt;%= request.getParameter("spanId") %&gt;"&gt;
  </code></pre>