You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by bcaramu <bc...@gmail.com> on 2010/08/13 11:21:32 UTC

Re: Jsp working fine from tomcat, but displaying source when accessed through apache (Only on Firefox)

set response.contentType(text/html"), then it works



newToMina wrote:
> 
> I have jsp page which displays fine when I access it directly from tomcat.
> But when the page is access through apache (mod_jk) it displays the source
> code. This is happening only on Firefox and on IE it works fine. Firefox
> is rendering the page in quirk mode when accessed through apache and
> rendering in standard complaince mode when accessed directly from tomcat. 
> OS: Opensuse 10
> Tomcat: 5.5.20
> apache: 2.0.59 (Unix) (mod_jk/1.2.19)
> 
> The following is the response headers for apache and tomcat.
> 
> Direct from tomcat:
> Server: Apache-Coyote/1.1
> Set-Cookie: JSESSIONID=61DB0770967F2681728FFFF73F742C37; Expires=Thu,
> 01-Jan-1970 00:00:10 GMT
> JSESSIONID=A279CC9DD911FC575BFFDEC7837E371F; Path=/appname
> Expires: Sat, 6 May 1995 12:00:00 GMT
> Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
> pre-check=0
> Pragma: no-cache
> Content-Encoding: gzip
> Content-Type: text/html;charset=ISO-8859-1
> Content-Length: 2418
> Date: Tue, 07 Apr 2009 14:55:42 GMT
> 
> 200 OK
> 
> Same page accessed through apache:
> Date: Tue, 07 Apr 2009 14:56:23 GMT
> Server: Apache/2.0.59 (Unix) DAV/2 SVN/1.4.0 mod_jk/1.2.19
> Set-Cookie: JSESSIONID=9D1D989BFF39342075436442AE3291D9; Expires=Thu,
> 01-Jan-1970 00:00:10 GMT
> JSESSIONID=A2E8A86EDB48255780784AE916B4775E; Path=/appname
> Expires: Sat, 6 May 1995 12:00:00 GMT
> Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
> pre-check=0
> Pragma: no-cache
> Content-Encoding: gzip
> Content-Length: 2418
> Keep-Alive: timeout=15, max=97
> Connection: Keep-Alive
> Content-Type: text/html;charset=ISO-8859-1
> 
> 200 OK
> 
> Any help is greatly appreciated...
> 

-- 
View this message in context: http://old.nabble.com/Jsp-working-fine-from-tomcat%2C-but-displaying-source-when-accessed-through-apache-%28Only-on-Firefox%29-tp22931646p29427045.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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