Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

select record in jsp page using radio button

  Asked By: Pedro    Date: Jan 06    Category: Java    Views: 3581

my jsp page is retrieving some records dynamically. each record has
radio button. upon check radio button and click modify button at the
bottom i need to redirect to modify page. I dont know how to select a
record from table!! help needed any sample code is solicited.



2 Answers Found

Answer #1    Answered By: Damon Jones     Answered On: Jan 06

Are u reffering to records  from a database ?

In that case assign the primary key of the record
to the checkbox value.
Now when the checkbox is selected get the value
and fetch the record.

Answer #2    Answered By: Varun Mehta     Answered On: Jan 06

This may help you,
1. You are fetching details from DATABASE.
2. from jsp  you passthis code to browser:
<%@ page  language="java" import="java.sql.*,java.io.*,java.util.*" %>

String type=request.getParameter("somedummy");
--- stuff wil come here - retrieving  and storing in result set


} catch(Exception e)
out.println("<h1>"+"Server Error"+ e+ "<h1>");


3. Revert Back if u need my help

Didn't find what you were looking for? Find more on select record in jsp page using radio button Or get search suggestion and latest updates.