Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Populating dynamic data into fields

 
pramodh somashekara
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, We have a table of data at the top of the JSP page and a set of fields corresponding to each column at the bottom of the page. The data of table is populated from the database whenever the page is opened.

I want to be able to click on a particular row of the table and populate the data corresponding to that row in the following fields.

What is the best way to implement this?
 
Rusty Smythe
Ranch Hand
Posts: 93
Mac Objective C Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Javascript is probably the easiest way, and it will be the most responsive to the user.
 
reddy yeruva
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai

first pass the record id to javascript function on click event wirte

location='page.jsp?id='+value;

value means your record id

then in the page get the value using request.getParameter("id");
pass this id to your query then display the result set in a table format..


i hope this solves your problem
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic