hi micheal,

 i didnt get ur first question....
but i sure do have an answer for second one...

what u can do is something like follows..

StringBuffer sb = new StringBuffer();
sb.append("<html>\n");
sb.append("<head>\n");
sb.append("<title>My Website</title>\n");
sb.append("</html>\n");
out.println(sb);                // where out is the instance of printWriter
class

hope this helps


-----Original Message-----
From: Michael De Vorms [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 10:11 AM
To: [EMAIL PROTECTED]
Subject: Java Servlet HTML


Hello In java servlets, Im sure there is a way to post all my HTML code with
the formatting I choose as one string.
For example

   <html>
    <head>
     <title>My website</title>
    </head>
   <body>
    Welcome to my web site
   </body>
  </html>

Instead of having to write each seperate line as a string!
Thanks in advance,
Micahel De Vorms

Also when view>source is selected I want the html to come us as I did it in
the java code, not in one long line!



_________________________________________________________________
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html


DISCLAIMER: Information contained and transmitted by this E-MAIL is
proprietary to MASCOT SYSTEMS LIMITED and is intended for use only by the
individual or entity to which it is addressed, and may contain information
that is privileged, confidential or exempt from disclosure under applicable
law. If this is a forwarded message, the content of this E-MAIL may not have
been sent with the authority of the Company. If you are not the intended
recipient, an agent of the intended recipient or a person responsible for
delivering the information to the named recipient, you are notified that any
use, distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail & notify us
immediately at [EMAIL PROTECTED] Before opening attachments, please
scan for viruses

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to