Hi,
I am using a JSP in my application. In JSP page I created tables and buttons inside a loop.
My problem is -- when any one of the 4 buttons was clicked how can I find which button was clicked, so that I can get the SNo associated with it.
Is there any way to find the button which is clicked?
Thanks in advance,
Tiijnar
I am using a JSP in my application. In JSP page I created tables and buttons inside a loop.
Code:
<%
i=0;
while(i<4) {
%>
<table align="left" width="100%">
<tr>
<td>
<%
out.print("SNo. " + (i + 1));
%>
<input type="submit" name="name" value="Click">
</td>
</tr>
<tr>
<td>
<%
out.print("ABC");
%>
</td>
</tr>
</table>
<%
}
%>
Is there any way to find the button which is clicked?
Thanks in advance,
Tiijnar
Comment