Hello everyone,

Can anyone tell me how to create the hierarchial structure of replies to a particular message using Java.

In most of the Internet Forums, you will find that when you click on a message, the replies to it will be shown in a hierarchial manner based on the date they were posted.

Recommended Answers

All 2 Replies

When someone creates a reply, keep track of the parent message that new reply belongs to.

I'm keeping track of it. Later when you retrieve all the values from the database, the replies will be shown as they are being shown now..
I mean your's and my reply for this thread are shown one after another.

What I want is something like the below one:

Thread Java
Re:Thread Java----Phaelax
Re:Thread Java---Ravi.

But it shud not be like

Thread Java
Re: Thread Java
Re:Thread Java.

I hope you can differentiate.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.