> hi,
> you don't have servlet in J2SE... you can get it
> from J2EE ... download the latest J2EE .. the
> package is available in j2ee.jar file..
> ou can download it from:
> http://java.sun.com/javaee/downloads/index.jsp
> -- Abdel Raoof Olakara
> http://olakara.googlepages.com
You are quite wrong my friend... Servlets don't depend on any J2EE container, the only thing you need is a J2SE edition... check this:
http://en.wikipedia.org/wiki/Java_Servlet
MeTitus
javax.servlet is in fact part of the J2EE, one only has to check the javadocs to know this for certain. I wouldn't put my money on a wikipedia page when you can get the info right from the source.
http://java.sun.com/javaee/5/docs/api/
However, you do not need j2EE just to compile servlets. If you use Tomcat then you can compile servlets by adding the tomcat/common/lib/servlet-api.jar to your classpath. I'm sure other webservers like Resin have a similar jar that you can add.