Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners display the hidden text from that row, when onclick on a row of 1- 10
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Saj
display the hidden text from that row, when onclick on a row of 1- 10
0 Answer(s)      3 years and 2 months ago
Posted in : Java Beginners


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>

Advertisement
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
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 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
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
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
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
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
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
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
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
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
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 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
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
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
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
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
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
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 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