display the hidden text from that row, when onclick on a row of 1- 10

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









Related Tutorials/Questions & Answers:
display the hidden text from that row, when onclick on a row of 1- 10
display the hidden text from that row, when onclick on a row of 1- 10 ... to 10)in jsp page, when onclick on one of the view row, it has to submit... of the 10 rows, the hidden text is storing the id for the first row and not any
how to display the selected row from the data table in model panel ??
how to display the selected row from the data table in model panel ?? ...="controls"> <h:commandButton value="close" style="cursor:pointer" onclick...()) { TableData td =dataItr.next(); if((dataList.indexOf(td))==1
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
delete row from a table in hibernate
delete row from a table in hibernate  is there method to delete row in a table using hibernate like save(-) to insert row
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<
how to add the two tables in same row when generating pdf file from jsp - JSP-Servlet
how to add the two tables in same row when generating pdf file from jsp  How to add the two tables in same row one is left side and other is right side please help me.   Hi Friend, Try the following code
to display single row from database and next to display other question - JSP-Servlet
to display single row from database and next to display other question ... questions in database we have to display first question on clicking the button it has to display the next question. i tried it first question is displayed
display multiple image file or pdf file in multiple column of a row from server or database
display multiple image file or pdf file in multiple column of a row from server... in a single row..Suppose I have to display two files in a row then after uploading more files then uploaded file should be display again tow file in another row
Write a query to display a row using index
Write a query to display a row using index  Write a query to display a row using index
how to set the image and address in single row when genearting pdf fil from jsp - JSP-Servlet
how to set the image and address in single row when genearting pdf fil from jsp  i need to set the image is left side and right side is address when genrating the pdf file from jsp  Hi Friend, Try the following code
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
Want to display Arraylist items on same row in JSF
Want to display Arraylist items on same row in JSF  I want do display values of one arraylist on same row using datatable? If i use h:column, then it goes on different row. Please tell me, how I can do it?   Hi Friend
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
How to delete the row from the Database by using servlet
How to delete the row from the Database by using servlet  Dear Sir...: Delete row from database using servlet   In that link solution... then the user data to be delete from the database table. Assume in Database table have
Update delete perticular row from brower on link - Struts
delete when i click on update than that perticular row are display on another...Update delete perticular row from brower on link   how can update and delete perticular row from List of employee in brower format are ramesh
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
reading a csv file from a particular row
reading a csv file from a particular row  how to read a csv file from a particular row and storing data to sql server by using jsp servlet
how to select the row value that was retrived from the database ?
how to select the row value that was retrived from the database ?  I am getting the data's from the table that was stored in database. Now in the page in which i am getting all the data from the database has an another select
how to select the row value that was retrived from the database ?
how to select the row value that was retrived from the database ?  I am getting the data's from the table that was stored in database. Now in the page in which i am getting all the data from the database has an another select
How to change table row color when click on Hyper Link in jsp?
How to change table row color when click on Hyper Link in jsp?  I use 5 links: Link 1 Link 2 Link 3.. table: row1 row2 row3.. when click on the link1 automatically change
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
Displaying the entire row in another datatable when the checkbox is checked - Java Server Faces Questions
Displaying the entire row in another datatable when the checkbox... to fetch a row completely when the check box corresponding to that row is checked. In the backing bean an object corresponding to a row is created. How can i display
Column count doesn't match value count at row 1
Column count doesn't match value count at row 1  Column count doesn't match value count at row 1 UPDATE user_profile SET id=[value-1],user_id..._age=[value-30] WHERE 1
how to change a column data in a every row in a text file in java
how to change a column data in a every row in a text file in java   i have text file like this 11,6,13/9/14,1287605778,89... column in every row ie. account number to some text in a text file in java could
Sql row retrieve - SQL
Sql row retrieve  Sir What are the sql statements so that I can retrieve rows from a table by specifying the row numbers such as row no.5 to 10... by specifying the row numbers such as row no.5 to 10, row no.13 to 20 like
Deleting row and column from a table
Deleting row and column from a table  In this program ,we delete row... the row having minimum ID.  statement.executeUpdate("delete from cellular where id='"+rs.getInt(1)+"'");    System.out.println("Row is deleted successfully
didSelectRowAtIndexPath deselect row
didSelectRowAtIndexPath deselect row  Hi, In my UITableView application when user taps a row, how to deselect row? Thanks
Fix table's column's name row(1st row of the table) so that it does not move up when the table is scrolled up to view more rows below
Fix table's column's name row(1st row of the table) so that it does not move up when the table is scrolled up to view more rows below  HI, I have a table in which the data is fetched from database. The table has 20 columns
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
How to know the selected row from table - JSP-Interview Questions
How to know the selected row from table  hi Every one....i am retriving data from database and i place that data into html table.in that table i... the selected row in that table.  Hi Friend, Please clarify your
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
How to delete the row from the Database by using while loop in servlet
How to delete the row from the Database by using while loop in servlet .... It is Urgent...  When you retrieve the data from the Database by using...;input type="text" name="uname" &gt;&lt;br/&gt;&lt;br/&gt
How to open a window from a java program (from code)[ (onclick of something text )]
How to open a window from a java program (from code)[ (onclick of something text )]  When I download the code an put it in Eclipse, the applet is run, but on click of the button displayed in the applet, a new window with google
Mysql last row
OK, 1 row affected (0.02 sec) mysql>insert into employee1 values(02,'Komal','2008-12-21'); 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>
Deleting a Row from SQL Table Using EJB
Deleting a Row from SQL Table Using EJB... are going 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
JavaScript add row to table
have added the 'td' data to the row element 'tr'. When you load the page, you... JavaScript add row to table       This section illustrates you how to add a new row to the existing
Mysql Last Row
; Mysql Last Row is used to return the last records from table. Understand with ExampleADS_TO_REPLACE_1 The Tutorial illustrate an example from 'Mysql Last Row...,'Girish','2008-12-20'); Query OK, 1 row affected (0.02 sec) mysql>insert
JDBC Delete Row In Table Example
specific row from the table use mysql JDBC driver.This tutorial defined how one or more specific  row delete from table that follow any given condition...  Mysql query  "DELETE FROM user where user_id=1 "  
How to Create Multiplication Table from 1 to 10?
How to Create Multiplication Table from 1 to 10?  Hi, I want... table 1 to 10. Please suggest online example related to creating multiplication table. Thanks   Hi, Did you want to create multiplication table 1
insert and delete a row programmatically
insert and delete a row programmatically  How to insert and delete a row programmatically ? (new feature in JDBC 2.0
jtable insert row swing
jtable insert row swing  How to insert and refresh row in JTable?   Inserting Rows in a JTable example
delete row using id
delete row using id  package pkg2; import org.hibernate.Query; import... = "delete from Insurance insurance where id = 2"; Query query = sess.createQuery(hql); int row = query.executeUpdate(); if (row == 0

Ads