accept function in jsp

Joined
Mar 7, 2010
Messages
1
Reaction score
0
<html>
<body>
<%@ page import="javax.servlet.*" %>
<%@ page import="javax.servlet.http.*" %>
<%@ page import="java.sql.*" %>

<%
Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/mall?user=root&password=");
Statement statement = connection.createStatement() ;
ResultSet resultset =
statement.executeQuery("select * from test") ;
%>

<TABLE BORDER="1">
<TR>
<TH>Shop Name</TH>
<TH>Shop Desc.</TH>
<TH>Owner Name</TH>
</TR>
<% while(resultset.next()){ %>
<TR>
<TD> <input type="checkbox"> <%= resultset.getString(1) %></td>
<TD><%= resultset.getString(2) %></TD>
<TD><%= resultset.getString(3) %></TD>
</TR>
<% } %>
</TABLE>
<input type="button" value="Accept" style="background-image:url(../images/accept.png)" />
<input type="button" value="Reject"/>
</body>
</html>

it showing some values frm db.
i want to when i click accept then the checkboxes s values go to another table i cant understand how to do that.
can any 1 help me with this issue.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top