Thanks for replying.

I think if we can get all the messages from the database in some kind of
order, said,
"message1, reply to message1, reply to message1, message2, reply to message2
..."
then we can do something like this:

"<%if (message == topic)
{%>
  <tr>
    <td colspan=2>topic(e.g. message1...)</td>
  </tr>
<%}else if (message == reply){%>
  <tr>
    <td><img src=blank.gif width=10></td><td>replies(e.g. reply to
message1...)</td>
  </tr>
<%}%>"
That will make the replies indent.

But how can I get the messages from the database right?

shirley




>From: Antillon Reyes Rafael Martin - EXT <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>     reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: How to display messages
>Date: Thu, 22 Feb 2001 15:24:40 -0600
>
>Hello, I�ve planned to do a personal post jsp page.
>We could help each other.
>
>Maybe you should do something like this
>
>{--some code--}
>
><tr>
>         <td><img src=blank.gif width=0></td><td>.  Message1</td>
><---- or width=1, whatever
>         <td><img src=blank.gif width=10></td><td>. reply to message1</td>
><---- or width="the space u need"
>         <td><img src=blank.gif width=10></td><td>. second reply to
>message1</td>   <---- well u got the idea
><tr>
>
>Where blank.gif is a transparent image.
>Sorry i have no blank image now to attach to you.
>
>
>Rafael Antill�n Reyes
>Grupo Vitro
>Tel. 3-29-17-00 Ext. 2966
>[EMAIL PROTECTED]
>ICQ# 61057293
>
>
>---Original Message-----
>From: Shirley Chen [mailto:[EMAIL PROTECTED]]
>Sent: Mi�rcoles, 21 de Febrero de 2001 01:14 p.m.
>To: [EMAIL PROTECTED]
>Subject: How to display messages
>
>
>Hi everybody,
>
>I am doing a jsp page which should be like a message board.  The user can
>send new messages or reply to the existing messages.  My problem is how can
>I display all the messages like this:
>
>     . Message1
>         . reply to message1
>         . second reply to message1
>     . Message2
>         .reply to message2
>
>Really appriciate of your help!
>Thanks in advance
>
>Shirley
>
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.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

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.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

Reply via email to