Hey!
I am not sure that I understand your question but can't you do something like
this for the \n?

out.println("<HTML>");
out.println("<HEAD><TITLE>Providers Online</TITLE></HEAD>");

For the \t I think you are out of luck.  Unless you want to get into embedding
control characters into the HTML document, i.e. hex 0D and hex 09.

But I have a trivial question back at you. :>)  What do you care what the HTML
code looks like?  The HTML is sent back to the browser and the browser displays
the document.

Sans adieu,
Danny Rubis


eric liu wrote:

> Hi there: I do not intend to robe your time, but I have a trivial question
> which haunted me for about a week, and I think surely some of you have the
> anwser:
> I am wondering why the special characters like newline '\n','\t' do not work
> in the servlet output, basically, I  do not want the source file looks
> like a mess, but  how do I do that? My code like this:
>
>     PrintWriter out = response.getWriter();
>     out.println("<HTML>"+
>                      "\n<HEAD><TITLE>Providers Online</TITLE></HEAD>");
>
> Thank you for your attention. Eric Liu
>
> ___________________________________________________________________________
> 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

___________________________________________________________________________
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