Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > General Computer Support > accept function in jsp

Reply
Thread Tools

accept function in jsp

 
 
rupak rupak is offline
Junior Member
Join Date: Mar 2010
Location: Kolkata,India
Posts: 2
 
      03-07-2010
<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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
accept function in jsp rupak Java 0 03-07-2010 04:14 PM
JSP+JSTL cant output values using <c: taglib. "attribute items does not accept any expressions" Anonymous Java 2 08-31-2006 04:13 PM
[JSP] difference between jsp:forward and jsp:include alexjaquet@gmail.com Java 0 06-02-2006 01:21 PM
Help: template function specialisation must accept scalar types only Martin MacRobert C++ 2 08-02-2004 10:56 PM
Help Please: Making a function template accept a default argument CoolPint C++ 3 12-05-2003 04:31 PM



Advertisments