basic question about Java Servlet

Hai All,

I am very new to this Java Servlet technology.. I want to use Java Servlet in my poject.. And I read JSP book and it say that Ihave to dowload Java Servlet API 2.2. After I download, there is only 1 file (servlet.jar) and I don't waht to do after that.

So, my questions are:

1. How Do I install the Servlet?

2. In which location should I put the Servlet file?

Thanks in advance... ^^

[430 byte] By [suigiona] at [2007-11-27 5:08:36]
# 1

Put it in the classpath of the webapplication and then you can use the classes that are provided in this jar, for example the javax.servlet.HttpServlet which you can use for servlets.

I recommend you to read the Java EE tutorial anyhow. Servlets starts at chapter 3.

http://java.sun.com/javaee/5/docs/tutorial/doc/

BalusCa at 2007-7-12 10:28:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
by the way, I am using JRun as my local server...And there is 'servlet" folder inside this JRun folder... is that the correct location to out the Java Servlet API Classes file?
suigiona at 2007-7-12 10:28:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
There is folder "classes" inside the WEB-INF folder... is this the classpath of the webapplication where I should the Java Servlet class file?Thanks... ^^
suigiona at 2007-7-12 10:28:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
In order to run a servlet you need a web server or an application server.These are the basic things.After installing any one of those..try setting class path to servler-api.jar and jsp-api.jar
santhoshreddythuragaa at 2007-7-12 10:28:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...