Re: Netscape navigator

2003-03-19 Thread Erik Price


Susan Hoddinott wrote:
Does anyone know if there is a problem using Netscape Navigator with 
servlet pages generating their own html using the println function.  
Whenever I attempt to access servlets of this kind (which work fine 
under Explorer) I just get the HTML text (e.g. HTML etc.) displayed on 
the screen rather than what should be generated.  Is there something 
special I need to do?
Did you use this?

http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletResponse.html#setContentType(java.lang.String)

Erik

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Netscape navigator

2003-03-19 Thread Larry Meadors
Are you setting the content type?

 [EMAIL PROTECTED] 03/19/03 08:58 AM 
Does anyone know if there is a problem using Netscape Navigator with
servlet pages generating their own html using the println function. 
Whenever I attempt to access servlets of this kind (which work fine
under Explorer) I just get the HTML text (e.g. HTML etc.) ...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Netscape navigator

2003-03-19 Thread Jake Robb
In order to be HTML 4.01 compliant, you need to specify a charset and
content type.  I find that the easiest way to do that is to include the
following on all my pages (I typically make a common include page to
generate it for me).

meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'

Or similar, if you're using a different charset.

-Jake

- Original Message -
From: Susan Hoddinott [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 10:53 AM
Subject: Netscape navigator


Does anyone know if there is a problem using Netscape Navigator with servlet
pages generating their own html using the println function.  Whenever I
attempt to access servlets of this kind (which work fine under Explorer) I
just get the HTML text (e.g. HTML etc.) displayed on the screen rather
than what should be generated.  Is there something special I need to do?

Regards







 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Netscape navigator

2003-03-19 Thread Nikola Milutinovic
Susan Hoddinott wrote:
Does anyone know if there is a problem using Netscape Navigator with 
servlet pages generating their own html using the println function.  
Whenever I attempt to access servlets of this kind (which work fine 
under Explorer) I just get the HTML text (e.g. HTML etc.) displayed on 
the screen rather than what should be generated.  Is there something 
special I need to do?
Have you set Content-type header to text/html?

Nix.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]