From: savita on 13 Apr 2007 06:23 Hello All, I am new to jsp , trying very hard ,bot to no avail. Onclick of row of table (html table) on first jsp the value in the row should be displayed in the textbox on second page in jsp. The table consists of records from database. Is it that we have to get the rowindex of table and the pass the corresponding value related to rowindex to the textbox? And should the records from database should be stored in arraylist and then display in table? How do I do it? If anyone could pass the code or related link will be helpful. Thanks
From: Sanjay on 13 Apr 2007 08:51 savita wrote: > Hello All, > > I am new to jsp , trying very hard ,bot to no avail. > > Onclick of row of table (html table) on first jsp the value in the > row should be displayed in the textbox on second page in jsp. > The table consists of records from database. > > Is it that we have to get the rowindex of table and the pass the > corresponding value related to rowindex to the textbox? > And should the records from database should be stored in arraylist > and then display in table? > > How do I do it? If anyone could pass the code or related link will be > helpful. > > Thanks > This is a HTML question. By the way which value in the first jsp page are you talking about? If your table has multiple columns and you click on a row, then which value are you expecting to pass to second jsp page? What I would do, is put an onclick event on the table row and set value of window.href to your second page url and would encore the variable in the url. On the second page, get it as a GET var. Sanjay
|
Pages: 1 Prev: exercise that uses hidden forms for session tracking Next: JBoss EJB MessageContext Exception |