-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

On Mon, 20 September 1999, Jean-Luc Rochat wrote:

> 
> -----------------------------
> Please read the FAQ!
> <http://java.apache.org/faq/>
> -----------------------------
> 
> John Thorhauer wrote:
> > 
> > -----------------------------
> > 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.
> > 
> Apache does it for you ;-) as you can see using a telnet.
> It's not JServ's fault ...
> 
> [root@r26m24 logs]# telnet localhost 80
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> foo
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <HTML><HEAD>
> <TITLE>501 Method Not Implemented</TITLE>
> </HEAD><BODY>
> <H1>Method Not Implemented</H1>
> foo to /index.html not supported.<P>
> Invalid method in request foo<P>
> <HR>
> <ADDRESS>Apache/1.3.9 Server at r26m24.cybercable.tm.fr Port
> 80</ADDRESS>
> </BODY></HTML>
> Connection closed by foreign host.


Thanks for confirming Jean!!

Anyone has any ideas on how to configure Apache to not
prepend that line ?

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]

Reply via email to