Hi, I have tried for several days to figure this out but now I am giving up. It works fine on 4.0.4 but not on 4.1.18. I have studied the /examples and read the documentation but can't figure out how to make it work. Here is a description of my setup and the error I get. Hope anyone can give some information on how to make this work.
I have the following: ********************** "conf/server.xml" <Context path="/bilder" docBase="D:\WEBROOT\bilder" debug="0" reloadable="true"> </Context> ********************* In my docbase-katalog I have the file "menu.jsp" which contains this .. .. <%@ page language="java" %> <%@ page import="java.io.*" %> <%@ page import="java.util.*" %> <%@ page import="Katalog" %> <%@ page import="Menu" %> <jsp:useBean id="kat" scope="session" class="Katalog" /> .. kat.newInit(_iptc, 'c'); .. **************************** "WEB-INF/web.xml" located under my docbase-catalog. <?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> <display-name>BildeWeb</display-name> <description> Terje's bilder </description> <servlet> <servlet-name>Katalog</servlet-name> <servlet-class>Katalog</servlet-class> </servlet> <servlet-mapping> <servlet-name>Katalog</servlet-name> <url-pattern>/Katalog</url-pattern> </servlet-mapping> </web-app> ******************** and in WEB-INF/classes I have these files Katalog.java The main class which imports Menu and Image classes. Katalog.class Menu.java Menu.class Image.java Image.class ************************* When I call the meny.jsp in my browser I get this: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 29 in the jsp file: /meny.jsp Generated servlet error: [javac] Compiling 1 source file C:\Tomcat 4.1\work\Standalone\localhost\bilder\meny_jsp.java:9: '.' expected import Katalog; ^ C:\Tomcat 4.1\work\Standalone\localhost\bilder\meny_jsp.java:10: '.' expected import Menu; ^ - Terje