-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
> >
> > Hello all,
> >
> > I am resending this e-mail in desperation..
> > Please bear with me as I might have sent it in
> > wrong time last night.
> >
> > I am writing a servlet that generates pure
> > (not HTML embedded) JavaScript
> > as its output (basically whatever would be there
> > in .js file). And I am setting content type
> > to application/x-javascript.
> >
> > But, either JServ or Apache is inserting following
> > DTD type at the top of the output:
> >
> > <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> >
> > Because of this, browser complains syntax error.
> > There should not be any html in pure javascript file.
> >
>
> What browser are you using? I have seen where netscape will add info
> into the top of a file it is reading when I view source on it. Try a
> different browser and see if you get the same result.
>
I am using Netscape 4.6.
But, if I run the servlet using Sun's
'servletrunner' utility instead of JServ,
it works fine even with Netscape. I don't
see that extra line with 'servletrunner'.
That's what lead me to believe that it is Apache
which is inserting it .... any clues ???
Am I missing any configuration ?
thanks
Ramesh
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]