| Author |
tomcat 6, Xampp - jsp pages just display the source code and do not execute
|
mucus membrain
Greenhorn
Joined: Mar 03, 2009
Posts: 3
|
|
Hi , I am new to JSP so if this is below basic please accept my apologies.
Firstly i am using Tomcat 6 , Xampp on windows xp as dev platform. I have installed the default installation and evrything is running fine . Tomcat as a service.
I have soeme test pages and when i place them in my application directory (via Ant compile) and access them via localhost8080:<app path>/<page> etc the pages just display the jsp source code of the page .See below
JSP Test
<% out.println("JSP running on http://localhost/ec/index.jsp ... okay!"); %>
This file was copied from another subdirectory from the webapps examples that works and compiled from my dev environment into my application "ec" as i could not get my own pages working where the jsp code would do exactly the same.
So the question is what am i doing wrong. Is this to do with the tomcat apache config or something else?
|
 |
mucus membrain
Greenhorn
Joined: Mar 03, 2009
Posts: 3
|
|
mucus membrain wrote:Hi , I am new to JSP so if this is below basic please accept my apologies.
Firstly i am using Tomcat 6 , Xampp on windows xp as dev platform. I have installed the default installation and evrything is running fine . Tomcat as a service.
I have soeme test pages and when i place them in my application directory (via Ant compile) and access them via localhost8080:<app path>/<page> etc the pages just display the jsp source code of the page .See below
JSP Test
<% out.println("JSP running on http://localhost/ec/index.jsp ... okay!"); %>
This file was copied from another subdirectory from the webapps examples that works and compiled from my dev environment into my application "ec" as i could not get my own pages working where the jsp code would do exactly the same.
So the question is what am i doing wrong. Is this to do with the tomcat apache config or something else?
Ok this looks like a browser issue with firefox as they work in IE. Looks like it is treating .jsp files like .txt.
M
|
 |
 |
|
|
subject: tomcat 6, Xampp - jsp pages just display the source code and do not execute
|
|
|