how do I get the javax.servlet package?

I have a simple question. I downloaded the JAVA platform Standard Edition SDK 1.6.0 and find that it doesn't have the javax.servlet package? From where can I get it and how to install and configure?
[206 byte] By [fd97207a] at [2007-11-26 18:14:53]
# 1
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..You can download it from: http://java.sun.com/javaee/downloads/index.jsp-- Abdel Raoof
Olakaraa at 2007-7-9 5:48:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

> 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

Me_Titusa at 2007-7-9 5:48:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
hi, so you found javax.servlet in J2SE?-- Abdel Raoof Olakara http://olakara.googlepages.com
Olakaraa at 2007-7-9 5:48:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

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.

gimbal2a at 2007-7-9 5:48:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Since when has the javax.servlet package been bundled into J2SE? :D
singchyuna at 2007-7-9 5:48:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...