Servlets basics

Hello all

I have wrote the code for a servlet. But I am having difficulties in compiling it. It comes up with "class not found". I am very sure I have set all path correctly. I have set the path to jdk and jre.

Could some tell me how to get this to work. I have been trying for two days to compile a basic servlet. Could some on give some checkpoints please?

Thx

[388 byte] By [princerozarioa] at [2007-11-27 10:51:13]
# 1

Well if you're a beginner I'd download a sample web application. For example, if you installed Tomcat, it comes with some working Servlets so that you may see how they are written, how they are configured in the XML deployment descriptors, etc. Start with a working demo and learn from it, then go from there and extend it. Good luck!

SoulTech2012a at 2007-7-29 11:29:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Very likely you don't have the servlet jar itself on your classpath. You can't compile a servlet without servlet-api.jar on the classpath. servlet-api.jar comes with tomcat.

linuxjavausera at 2007-7-29 11:29:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Thankyou for the reply let me give it a try.

princerozarioa at 2007-7-29 11:29:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...