I have a jsp page with two identifiers and a text field name. Now I want to declare two variables java
int ID=5;and String Name="Riyana";. I want to initialize the value of text fields with these two java variables. How to do it? Please help. This is my jsp page code segment:
<%
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>
source
share