Putting database items in a table

danal's Avatar, Join Date: Jul 2008
Newbie Member
Hello,

I am just starting to learn JSP and having some difficulties (I am very familiar in ASP.NET).

I have a JSP page to which I added a table at design time.
Then, I am going over some items from a database table and I want to insert those items to the table I created. The table has 2 columns: 'id1' and 'id2'.

while (result.res.next())
{
int a = result.res.getInt(1);
int b = result.res.getInt(1);
}

How do I put those values in the table I created?

Thank you in advance,
Dana
0
XXxxImmortalxxXX's Avatar
Invasive contributor
dunno if this helps but yea lol


http://www.javascriptkit.com/domref/...operties.shtml



Last edited by XXxxImmortalxxXX; 7Jul2008 at 15:03..
0
danal's Avatar, Join Date: Jul 2008
Newbie Member
Thank you very mucg for trying to help... but it is not what I need :-(
0
XXxxImmortalxxXX's Avatar
Invasive contributor
dang im so so so sry well i got a script that retrive infor from a database in js do u want it? it gos by 9 rows
0
danal's Avatar, Join Date: Jul 2008
Newbie Member
I have the code that brings the data from the DB. What I am missing is the code that binds this data to a table created, from the controls list.
0
XXxxImmortalxxXX's Avatar
Invasive contributor
so let me get this straight you have the info alrdy and u alrdy have a db and all ur trying to do is insert ur new information into the db right lol?
0
danal's Avatar, Join Date: Jul 2008
Newbie Member
No, I am trying to bind the data to a HTML table, to show the results to the user.
I don't want to put the data in the DB.
0
XXxxImmortalxxXX's Avatar
Invasive contributor
k hmm well maybe we could try making a tabel n html and inside the html we connect that table with ur db to display the information