Hey here's a post for Joseph again ;-)
<Joseph>
        Buy a book about HTML and RTFM
        There are mailing lists about HTML too you know
</Joseph>

However, I don't think this post is really OT. Because I have a utility that
I often use in JSP to do this.

Your JSP is generating HTML, and in HTML, to go to a new line, you need <BR>
or <P> tags.
another approach is to put the whole block in <PRE> </PRE> tags.
Here's my code:

        public static String lineBreak(String input){
          // convert linebreak to <B>
                StringBuffer buff = new StringBuffer();
                if (input != null){
                        StringTokenizer st = new StringTokenizer(input,"\n",false);
                        while (st.hasMoreTokens()){
                                buff.append(st.nextToken());
                                buff.append("<BR>");
                        }
                }
                return buff.toString();
        }


Geert Van Damme

> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of paramjit singh
> Sent: donderdag 24 mei 2001 8:24
> To: [EMAIL PROTECTED]
> Subject: JAVA2EXE
>
>
> Hi everbody!
> Somebody suggested me to use java2exe for making a executable
> file out of java
> class files i used that software and made a executable file of three java
> class files which uses java swings etc it made the executable but
> when i ran
> it it says u need latest java VM to run ur application i downloaded and
> installed latest Virtual Machine from microsoft but still it gives same
> problem  i also installed netscape 6.0 then also it gives same error.
>
> Any solution Tell me ASAP
> Paramjit singh
>
> ____________________________________________________________________
> Get free email and a permanent address at http://www.netaddress.com/?N=1
>
> ==================================================================
> =========
> 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

Reply via email to