-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
[EMAIL PROTECTED] wrote:
>
> -----------------------------
> 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.
--
********************************
** John Thorhauer
** [EMAIL PROTECTED]
********************************
--
--------------------------------------------------------------
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]