Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

using java to get table rows (jsp and html)?

807569Aug 30 2006 — edited Aug 30 2006
I was wondering if there is any way to count rows from a html-table?

I want to know the number of rows created, just after it has been made. So that I can use this number 'for' creating my next table.


Have got this to work by using javascript code:

function test2()
{
if (!document.getElementsByTagName || !document.createTextNode) return;
rows = document.getElementById('spesifikasjonsTabell').getElementsByTagName('tbody')[0].getElementsByTagName('tr');

antallRader = rows.length;
document.test.hoyde.value = antallRader;

return antallRader;
}
, but this only generates on the clientside; which is not what I want.

I got a webpage, that uses html and jsp. After the generation of a table - which has an unknown numbers of rows, because of several underlying tests - I'd like to retrive how many rows that was generated before I proceed with my next table.

Is there a good workaround to this problem?

P�l

Message was edited by:
paulOlsen
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 27 2006
Added on Aug 30 2006
5 comments
532 views