can anyone sugguest what I should use to complie servlet? I try to use jdk1.3/bin to complie my java file before, but it's always show some strange words that it seems not compling and of course no output of class.file Do I need other stuff to complile servlet?
Yes. You need to add one "servlet.jar" file in your CLASSPATH. This is where all your servlet API's are kept.You can find this jar file in your servlet's engine "lib" directory. For tomcat3.2.1 it will be under jakarta-tomcata-3.2.1\lib\
I followed ur instructions to set the classpath in autobat, but I still can't compile the servlet. I save the index.html in a directory call greetings under webapps and the GreetingServlet.java in src directory under greetings. I try to compile the GreetingServlet by typing javac GreetingServlet.java in under src directory I put http://localhost:8080/greeting but it doesn't work It seems I still can't successfully compile the servlet and no .class file generated. Could you tell me why and how can I work out this?? Thank you so much