This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
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