hmm... well, this should work.
a root object being a Vector. This one contains all subjects as Vectors.
Each element in each vector maps to a hashtable. The hashtable might contain
things such as:
======
id,
subject,
message,
replies
======
the key replies maps to another vector -> hashtable with the same structure
as above.
if there are no replies to the entry, then don't add the key; & just make
sure that you check that "replies"-key exists ;)
good luck,
//Adrian Papari
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Crisalyn Ramos
Sent: 06 February 2001 10:29
To: [EMAIL PROTECTED]
Subject: data indention?
hi, i am doing a web forum and i would like to indent my data depending on
the thread level...something like:
subject 1
reaction 1.1
reaction 1.2
reaction 1.2.1
reaction 1.2.2
subject 2
reaction 2.1
and so on... is there any way i can manipulate my data this way. any method
in JSP that i can make use of this. or i will use the power of javascript
and other client side scripts...
any help will be greatly appreciated...
thanks
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets