accept function in jsp

Discussion in 'General Computer Support' started by rupak, Mar 7, 2010.

  1. rupak

    rupak

    Joined:
    Mar 7, 2010
    Messages:
    1
    Location:
    Kolkata,India
    <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.
     
    rupak, Mar 7, 2010
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nick

    JSP File

    Nick, Jan 3, 2004, in forum: Computer Support
    Replies:
    6
    Views:
    5,118
  2. ZZ

    .jsp web page won't load (WinXP, IE6)

    ZZ, Jun 29, 2004, in forum: Computer Support
    Replies:
    1
    Views:
    3,826
    °Mike°
    Jun 29, 2004
  3. JM

    JSP 440

    JM, Feb 6, 2004, in forum: Computer Security
    Replies:
    20
    Views:
    14,768
    Dave J
    Feb 16, 2004
  4. vijendra
    Replies:
    1
    Views:
    7,985
    arpit1988
    Oct 6, 2006
  5. rajbala.3399@gmail.com

    How plugin a applet in jsp

    rajbala.3399@gmail.com, Oct 28, 2006, in forum: Computer Support
    Replies:
    3
    Views:
    3,179
Loading...

Share This Page