aspose file tools
The moose likes Tomcat and the fly likes tomcat 6, Xampp - jsp pages just display the source code and do not execute Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "tomcat 6, Xampp - jsp pages just display the source code and do not execute" Watch "tomcat 6, Xampp - jsp pages just display the source code and do not execute" New topic
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: tomcat 6, Xampp - jsp pages just display the source code and do not execute
 
Similar Threads
JSP code displays in the browser
Why won't my images display right in JSP under tomcat?
monitor tomcat and how to view system.out.println on the server?
Deploying a servlet to a Tomcat server I don't own
class files not being created