Re: onclick of row of table the value should be in textbox in jsp



On Apr 13, 5:51 pm, Sanjay <sanjay.deb...@xxxxxxxxxxxxxxxxx> wrote:
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- Hide quoted text -

- Show quoted text -



Hello All,

I will redifined my problem.

.



Relevant Pages

  • Re: adding logged in user to text box
    ... notes part of the database. ... Right now I am able to display the time, ... add the current date, time and user, it will overwrite anything that I have ... the info previously inputted into the textbox, ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Count and display entries
    ... address in the database. ... The solution will be to have a textbox with a Control Source resembling ... YOu would probably need to requery this textbox in the afterupdate event ...
    (microsoft.public.access.formscoding)
  • Re: onclick of row of table the value should be in textbox in jsp
    ... row should be displayed in the textbox on second page in jsp. ... The table consists of records from database. ... and then display in table? ...
    (comp.lang.java.programmer)
  • Re: save result to text file in JSP
    ... > I have a JavaServer Page which get data from database then display it for user ... Since you just said that you've tied your database access to the JSP, ...
    (comp.lang.java.programmer)
  • Re: Struts2 or JSF?
    ... from a database for display in an ... image tag in the JSP. ... My servlet had worked with a straight JSP / JDBC approach so it was quite the mystery. ...
    (comp.lang.java.programmer)