tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: How to set ContentType from within Filter?
Date Mon, 21 Jan 2008 15:05:05 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Eric,

Eric B. wrote:
| After further debugging, I noticed that my compiled JSP class file has a
| response.setContentType( "text/html" ) as pretty much the first
functional
| line in the _jspService() method.  I checked my jsp file and don't
have that
| anywhere...  is this something that Jasper adds in automatically?

Yes.

| Is there a way to avoid it?

Yes:

<%@page contentType="text/css" %>

I'm sure there's a more up-to-date reference, but this one illustrates
the default value for that directive:

http://java.sun.com/products/jsp/pdf/card11.pdf

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkeUtKEACgkQ9CaO5/Lv0PBPXACgvtk3puAsIHAE/9KM2bA4EjVA
gyUAn1AxEd0al2ziDF8CX2NGpKtqsx3r
=7Udq
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message