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.
Mark,
I changed JKMount as you suggested. But firefox is still displaying the
source when accessing through apache. Direct tomcat access displays fine.
Firefox is rendering the page as follows:
Direct from tomcat (http://server:8080/appname/servlet/Controller)
Type : text/html
Render Mode:
newToMina wrote:
Mark,
I changed JKMount as you suggested. But firefox is still displaying the
source when accessing through apache. Direct tomcat access displays fine.
Firefox is rendering the page as follows:
Direct from tomcat (http://server:8080/appname/servlet/Controller)
Type : text/html
From: newToMina [mailto:askme...@yahoo.com]
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.
Do you have a JkMount for the directory with the .jsp in *and* the same
directory exposed
Thanks for the reply. The JK mount is difined as follows. The wired thing is
that first couple of page of the application is working fine. Only a
purticular page is giving this problem. (the response headers were for this
page). I have no clue on why is it happening. For some reason the firefox
newToMina wrote:
Thanks for the reply. The JK mount is difined as follows. The wired thing is
that first couple of page of the application is working fine. Only a
purticular page is giving this problem. (the response headers were for this
page). I have no clue on why is it happening. For some
Mark, could you please explain it a little more detail and provide an example
of the proper JKmount entries. Thanks in advance ...
--
View this message in context:
newToMina wrote:
Mark, could you please explain it a little more detail and provide an example
of the proper JKmount entries. Thanks in advance ...
Replace what you have previously with:
JkMount /appname/* tomcat5
JkMount /appname tomcat5
Note this means you do not use the Alias or
Thanks Mark... I will try this and update the post.
--
View this message in context:
http://www.nabble.com/Jsp-working-fine-from-tomcat%2C-but-displaying-source-when-accessed-through-apache-%28Only-on-Firefox%29-tp22931646p22934602.html
Sent from the Tomcat - User mailing list archive at