title: Initializing text box value in jsp page with java variable
body: <p>I have a jsp page having two text field id and name. Now I want to Declare two java variable 
  <code>int ID=5;</code> &amp; <code>String Name="Riyana";</code>. I want to initialize the value of the text fields with these two java variable.How to do this? Please help.
  This is my code segment of jsp page:</p>
  
  <pre><code>     &lt;% 
          int ID=5;
          String Name="Riyana";
       %&gt;
  
      &lt;tr&gt;
          &lt;td align="right"&gt;ID&lt;/td&gt;
          &lt;td&gt;&lt;input name="id" value="" size="20" type="text"&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td align="right"&gt;Name&lt;/td&gt;
          &lt;td&gt;&lt;input name="name" value="" size="50" type="text"&gt;&lt;/td&gt;
     &lt;/tr&gt;
  </code></pre>