I am trying to work out the Beer Selection example given in head first book. I have jdk1.5.0_01 installed and apache-tomcat-5.5.20 version of tomcat installed. I read some where that j2ee.jar file in the lib directory should be placed in the classpath.Having done that i sill get the " import javax.servlet.* package javax.servlet does not exist" error. Also i noticed that in the my jdk folder i have a package named javax but inside that there was no package named servlet.
Please let me know as to where i am going wrong in this web app? awaiting your response
posted 9 years ago
I guess you need to add servlet-api.jar to your classpath..