I have a jsp page having two text field id and name. Now I want to Declare two java variable
int ID=5;
& String Name="Riyana";
. 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:
<%
int ID=5;
String Name="Riyana";
%>
<tr>
<td align="right">ID</td>
<td><input name="id" value="" size="20" type="text"></td>
</tr>
<tr>
<td align="right">Name</td>
<td><input name="name" value="" size="50" type="text"></td>
</tr>