Setting the content type will not work in this case because I am outputting
some actual HTML first; page title, file name, last modified date, etc.; and
so I must use text/HTML.
----- Original Message -----
From: George Ter-Saakov <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 16, 1999 12:11 PM
Subject: Re: Displaying HTML Source
> I think you can read your HTML code and output it as is but you need only
> setContentType( "text/plain") upfront. Not "text/html"
>
> Hope it will work.
> George.
>
> > -----Original Message-----
> > From: Jay Macarty [SMTP:[EMAIL PROTECTED]]
> > Sent: Thursday, December 16, 1999 12:48 PM
> > To: [EMAIL PROTECTED]
> > Subject: Displaying HTML Source
> >
> > I have a servlet which needs to be able to show the user the source of
an
> > HTML file. In performing this same type function in other languages I
> > simply
> > read the text and converted the characters to their & equivalent. For
> > example, <HTML> would become <HTML>
> >
> > I was wondering if there is an easier way to accomplish this task? If
not,
> > does someone have, or know of, existing Java code to do the conversions?
> >
> >
> > --------------------------------------------------
> > Jay Macarty - Technical Specialist
> > Phone: (972) 591-7385
> >
> >
__________________________________________________________________________
> > _
> > 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
>
___________________________________________________________________________
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