You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Susan Hoddinott <su...@perth.dialix.com.au> on 2003/03/19 16:53:06 UTC
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
Re: Netscape navigator
Posted by Erik Price <ep...@ptc.com>.
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
TC 4.1.18 Can't upload files ??
Posted by Yoav <yo...@capitalmerchant.com>.
Hi,
We're using com.oreilly.servlet (cos.jar) to upload binary images.
Running windowsXP, jdk1.3, and the latest cos.jar from servlets.com.
Since migrating to TC 4.1.18 we keep getting some weird runtime error when
uploading:
javax.servlet.ServletException: javax/servlet/ServletRequest
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:533)
cos.jar is in c:\jdk1.3\jre\lib\ext also tried putting it in WEB-INF\lib..
Any ideas ?
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Netscape navigator
Posted by Jake Robb <ja...@mac.com>.
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" <su...@perth.dialix.com.au>
To: "Tomcat Users List" <to...@jakarta.apache.org>
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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Netscape navigator
Posted by Nikola Milutinovic <Ni...@ev.co.yu>.
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org