Hi, Iam new to javaservlets programming. Pls help me here. I have run on sample servlet program given in documentation. That program has these lines: [...] import javax.servlet.*; import javax.servlet.http.*; [...] During compilation I got "package javax.servlet.http does not exist". Where can I get this package.? Iam using Java sdk 1.4 version on Windows 2000 machine. Thx in advance, Laxman.
You need either the JWSDK (Web Services SDK) or the J2EESDK (J2EE SDK) to get the required APIs. There used to be a standalone servlet kit but it's been abandoned (or rather integrated into the above packages). Latest versions can be downloaded from Sun.
For getting started with the smallest and simplest package you can't beat Tomcat - which is included in the others, but may not be the latest version. My recommendation for beginners is always to start with Tomcat until you are comfortable with the servlet and JSP APIs. A good place to start. Bill