Help with tomcat/jsp.

Caporegime
Joined
12 Mar 2004
Posts
29,962
Location
England
I have created this test page but when I view it in my browser the jsp code is displayed, is there something wrong with my page, or is tomcat not setup correctly?

Code:
<html>
	<head>
		<title> My Test Page </title>
	</head>
	<body>
		A test webpage!
		<script> alert('hi'); </script>
	</body>
</html>

<% out.println("java test"); %>

I have the page "test.jsp" in the directory C":\Program Files (x86)\Apache Software Foundation\Tomcat 6.0\webapps\ROOT", is this correct?
 
Last edited:
Back
Top Bottom