HI
This is the simple code
you seethere'a an for loop, so there are many submit buttons !
when i click a submit button on page how should i know which button it was
Thanks
<table>
<jsp:useBean id="o" class="shopping.shop"/>
<jsp:setProperty name="o" property="id" value="${userid}"/>
<% String f[]=o.listshop();
for(int i=0;i<f.length && f[i]!=null ;i+=3){%>
<tr>
<td>
<form action="cart.jsp" method="get">
<%out.println(f[i+1]); %><br>
<%out.println(f[i+2]); %> $ <br>
<input type=submit value="delete">
<%} %>
</form>
</td>
</tr>
</table>