How do I configure my machine to start creating servlets?

I hav j2sdk1.4 on my system. How would I make my system, servlet ready?I hav tomcat 4.1 and IIS too, and m working on windows XP, professional SP2
[160 byte] By [Vive_JavaNETa] at [2007-11-27 4:57:26]
# 1
By having a Tomcat server (which includes a servlet container), you're already "servlet-ready"...At this point, you should go through Tomcat's tutorial.
karma-9a at 2007-7-12 10:12:54 > top of Java-index,Java Essentials,Java Programming...
# 2
Can u provide me with a link to go to it directly? would be so nice of you. actually I am very new to java!
Vive_JavaNETa at 2007-7-12 10:12:54 > top of Java-index,Java Essentials,Java Programming...
# 3

Problem is I am getting a message like :

javax.servlet cannot find package... whn I write a code like following :

import javax.servlet.*;

import java.io.*;

class Ser extends GenericServlet

{

public void service(ServletRequest req,ServletResponse res)

{

//Some code to handle the request and response...

}

}

I compiled it but it showed me an error... what do i do?

Vive_JavaNETa at 2007-7-12 10:12:54 > top of Java-index,Java Essentials,Java Programming...
# 4
The servlet classes aren't part of the standard JDK libraries, so you need to add them to the classpath when compiling. You'lll find servlet.jar under common/lib in the tomcat directory.How you add them depends on your compilation environment.
malcolmmca at 2007-7-12 10:12:54 > top of Java-index,Java Essentials,Java Programming...
# 5
I did that too... added that path to the CLASSPATH variable and also started tomcat 4.1 but problem still persisted. wht do i do?
Vive_JavaNETa at 2007-7-12 10:12:54 > top of Java-index,Java Essentials,Java Programming...
# 6
> Can u provide me with a link to go to it directly?> would be so nice of you. actually I am very new to> java![url= http://javaboutique.internet.com/tutorials/Tomcat/] Using Tomcat 4[/url]
karma-9a at 2007-7-12 10:12:54 > top of Java-index,Java Essentials,Java Programming...
# 7
Classpath environmental variable isn't to be relied on. Specify the classpath on the javac command.
malcolmmca at 2007-7-12 10:12:54 > top of Java-index,Java Essentials,Java Programming...
# 8
Ok got it!!
Vive_JavaNETa at 2007-7-12 10:12:54 > top of Java-index,Java Essentials,Java Programming...