display the hidden text from that row, when onclick on a row of 1- 10
Using JSP: I'm displaying a set of values from the databse in a table rows (1 to 10)in jsp page, when onclick on one of the view row, it has to submit the page to servlet. In the servlet I'm retreiving the hidden text as a parameter to get the id value of the row I clicked.
The problem is everytime I click on any of the 10 rows, the hidden text is storing the id for the first row and not any other row. Really appreciate ur help. Please help me.
Here is a dummy code I had created to show:
<TABLE cellpadding="15" border="1" style="background-color: #ffffcc;">
<%while (rs.next()) {%>
<TR onclick=submit()>
<TD><%=rs.getInt(1)%><TD><%=rs.getString(2)%><TD><%=rs.getString(3)%><TD><%=rs.getString(4)%><TD>
View Answers
Ads
Related Tutorials/Questions & Answers:
Advertisements
How to display single row from sql server 2005
How to
display single
row from sql server 2005 I am doing MCA project work. I am new in ejb and struct. i m using sql server 2005,jsp, ejb module, action classes and struct, i have a table which contains ID and Name, i want show
Arraylist from row values
Arraylist
from row values Hello,
can anyone please help on how to make an arraylist
from the
row values of a particular column
from a database...("select *
from employee");
ArrayList<String> list=new ArrayList<
Delete a row from database by id
Delete a
row from database by id I m creating a small application using servlet.
There is a form (index.jsp)having
10 fields on submitting the form... that contains entries of submittes form.
Now there are 2 extra columns(
10+2
Removing a Row from a JTable
Removing a
Row from a JTable
 ... to remove any one
row's data that is wrong entry then you must have to
remove
from the JTable. For removing the data of
row from JTable, you will
remove it
from
delete row from a table using hibernate
delete
row from a table using hibernate //code in java file
String hql="delete
from CONTACT c where ID=6";
Query query=session.createQuery(hql);
//error
when executing above code
CONTACT is not mapped
How to retrieve single row from MSSQL
How to retrieve single
row from MSSQL Hello sir,
Sir i... has to
display patient details accordingly,that what is present in his row.I mean only his
row has to be displayed in the next Jpanel within same window.I
How to retrieve single row from MSSQL
How to retrieve single
row from MSSQL Hello sir,
Sir i... has to
display patient details accordingly,that what is present in his row.I mean only his
row has to be displayed in the next Jpanel within same window.I
How to retrieve single row from MSSQL
How to retrieve single
row from MSSQL Hello sir,
Sir i... has to
display patient details accordingly,that what is present in his row.I mean only his
row has to be displayed in the next Jpanel within same window.I
delete row
("sourabh", $link);
$rows=mysql_query("select *
from sonu");
$
row=mysql... of table.
When the user selects the particular checkbox, that
row will get deleted...=conn.createStatement();
for(int a=0;a<
10;a++){
st.executeUpdate("delete
from book where
Works only for one row
" name="updat1" style="
display: none" id="updat1" style="border:
hidden"/><...="Submit Answer" style="
display:none" name="Ans" id="Ans"
onClick="invoke(6)"/>...Works only for one
row Hi,
My below code is working only
row_id
row_id sir i have created a table my_table with two rows n two column with smillar name in each cell without any primary key , how can i change the first
row and third column's name in sql server 2005 , kindly send me the query
row_id
row_id sir i have created a table my_table with two rows n two column with smillar name in each cell without any primary key , how can i change the first
row and third column's name in sql server 2005 , kindly send me the query
Deleting a Row from SQL Table Using EJB
Deleting a
Row from SQL Table Using EJB
 ... to delete a
row from the SQL Table. Find out the steps given below that describes
how to delete a particular
row from the database table using EJB. The steps
add image in a row of table
a label in which instead of passing
text i have inserted image using jLabel.setIcon(new ImageIcon("E:/2.jpg"));.But
when i pass this jlabel in the
row it shows...add image in a
row of table i have a table in which i have to add
add image in a row of table
a label in which instead of passing
text i have inserted image using jLabel.setIcon(new ImageIcon("E:/2.jpg"));.But
when i pass this jlabel in the
row it shows...add image in a
row of table i have a table in which i have to add
jtable-adding a row dynamically
jtable-adding a
row dynamically hi..i am doing a project for pharmacy ..
*pblm:*
when i want to enter the details in jtable while running the application there are 3 rows and 4 columns which is default bt
when we we have
Mysql last row
:-
mysql>insert into employee1 values(01,'Girish','2008-12-20');
Query OK,
1 row...');
Query OK,
1 row affected (0.02 sec)
mysql>insert into employee1 values(03,'vineet','2008-12-21');
Query OK,
1 row affected (0.02 sec)
mysql>insert