Go4Expert

Go4Expert (http://www.go4expert.com/)
-   JSP (http://www.go4expert.com/forums/jsp/)
-   -   Putting database items in a table (http://www.go4expert.com/forums/putting-database-items-table-t11895/)

danal 6Jul2008 14:59

Putting database items in a table
 
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

XXxxImmortalxxXX 7Jul2008 14:58

Re: Putting database items in a table
 
dunno if this helps but yea lol


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


:)

danal 7Jul2008 16:07

Re: Putting database items in a table
 
Thank you very mucg for trying to help... but it is not what I need :-(

XXxxImmortalxxXX 7Jul2008 16:15

Re: Putting database items in a table
 
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

danal 7Jul2008 16:21

Re: Putting database items in a table
 
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.

XXxxImmortalxxXX 7Jul2008 16:23

Re: Putting database items in a table
 
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?

danal 7Jul2008 16:32

Re: Putting database items in a table
 
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.

XXxxImmortalxxXX 7Jul2008 16:37

Re: Putting database items in a table
 
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


All times are GMT +5.5. The time now is 10:11.