title: how to print the value taken from user on browser in jsp?
body: <p>I want to print the value taken from user to another page through jsp. the value taken is in integer. Exception error is coming that value is null. Please help me how the value will get printed? </p>
  
  <p>Error Due to this line. Error is null value is taken as output.
  CODE:</p>
  
  <pre><code>&lt;jsp:useBean id="account" scope="session" class="com.servlet.Message1" &gt;
   &lt;%  String acc1 = request.getParameter("acc");
   int acc = Integer.parseInt(acc1);
   account.setAccount(acc);
  
  
   %&gt; &lt;/jsp:useBean&gt;
  </code></pre>