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
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.
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?
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.