permaculture playing cards*
The moose likes JSP and the fly likes Tomcat 4.1.29 does not compile JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Tomcat 4.1.29 does not compile JSP" Watch "Tomcat 4.1.29 does not compile JSP" New topic
Author

Tomcat 4.1.29 does not compile JSP

jay lu
Greenhorn

Joined: Mar 06, 2004
Posts: 1
Hi,
I have a problem with my server under Red Hat 9. I'm using Apache+Tomcat+SSL. My tomcat does not compile any jsp!!!
Can somebody help me?
This is my simple jsp: ***************************************************
<%@ page contentType="text/html;charset=WINDOWS-1252"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Hello World JSP</title>
</head>
<body>
<h1><% out.println(" Hello World JSP!"); %></h1>
</body>
</html>
My web.xml: ************************************************************
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>HelloWorld</servlet-name>
<servlet-class>HelloWorld</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloWorld</servlet-name>
<url-pattern>/HelloWorld</url-pattern>
</servlet-mapping>
</web-app>
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
I believe you have to use the <jsp-file> sub-element of the servlet tag to reference your JSP.
Bosun


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
 
subject: Tomcat 4.1.29 does not compile JSP
 
Similar Threads
Custom Tag Problem
Tomcat 5.028 not able load tag handler class
Spring
Http Error 500
Deploying Servlet in Tomcat 5.0