Deploying Web Applications to Tomcat
Subject:   What is the file name of Listing 4
Date:   2003-03-06 07:53:05
From:   anonymous2
Response to: What is the file name of Listing 4

Anyone have any help on this

I created the subdirectory com\onjava and tried to compile from there. I get a compile error: class login is public, should be declared in a file named
public class login extends HttpServlet {
1 error

Stuck so early on, too! Please help...and if anyone can give me a step-by-step of how to set classpath (Tomcat? Java?) to not create that problem with the HttpServlet thing, as many people have asked, I would be really grateful. I'm currently compiling all code like this:

~>javac -classpath ".;C:\Project\Apache Tomcat 4.0\common\lib\servlet.jar"

Thanks to anyone who can spare a minute for a confused newbie.