Hi--
I'm learning
Java to do
servlets and
Tomcat. I've got Head First Java and Head First Serlvets.
I couldn't get a tutorial class (BeerSelect.java) to compile.
Here's the line:
import javax.serlvet.*;
First I made sure to point javac at Tomcat/Common/lib/servlet-api.jar...
that did not work.
So I downloaded Eclipse and got it running. I added the Tomcat classpath to the classpaths. Still did not work.
Then I noticed a couple things in Eclipse:
1) javax does not have a servlet package
2) if I'm using the servlet-api.jar as the classpath, I probably need another import statement, not the one I have (from the book).
so I tried this, because of the added classpath:
import servlet.*;
that didn't work either
how do I look inside the servlet-api.jar file to see what the correct path is?
what am I missing here?
Thanks
Matt