Xampp, Tomcat, jsp pages show source code [Answered]
Posted: 22. August 2012 05:28
Hello I am using Tomcat with Xampp 1.8 (control panel version 3.0.12) to serve .jsp pages but the browser (Firefox 14) show the source code on the served page when it is in the xampp/tomcat/webapps folder. If I move the .jsp file to the xampp/webapps/examples folder the .jsp works. Why? By the way what is a WEB-INF folder? I am using Windows 7 operating system.
- Code: Select all
<%@page contentType="text/html" import="java.util.*" %>
<HTML>
<HEAD>
<TITLE>Hello World</TITLE>
</HEAD>
<BODY>
<H1>Hello World</H1>
Today is: <%= new java.util.Date() %>
</BODY>
</HTML>