test
test

Reputation: 18200

My First Tomcat Servlet

I seem to be having trouble with Tomcat servlets and even setting up my own. I am using Windows Vista x64 bit. I CAN connect and see the servlet examples. I just don't know how to go about creating my own.

Can anyone pinpoint to me a guide on "my first servlet" with a step-by-step instructions on how-to?

Thanks.

[Do not close this as there is clearly a question here.]

Upvotes: -1

Views: 566

Answers (3)

trashgod
trashgod

Reputation: 205765

Start my modifying an existing servlet, as suggested previously. Then add a new servlet to an existing web application, such as Tomcat's examples. Then look at one of the numerous tutorials on the web. I like Marty Hall's original Servlets and JavaServer Pages (JSP) 1.0: A Tutorial. Although it's now outdated, it is also very methodical.

Upvotes: 1

BalusC
BalusC

Reputation: 1108537

There are several video tutorials at Youtube.

Particularly this one is pretty good to get started. You only need to have JDK6 downloaded and installed and Eclipse for Java EE developers and Apache Tomcat 6.0 downloaded and unzipped.

Upvotes: 0

Brian Agnew
Brian Agnew

Reputation: 272217

Is Sun's Instant Tutorial of use ?

Or maybe this tutorial, which covers not only the coding (normally straightforward) but also the construction of the web.xml and the deployment, which can cause a lot of grief to the uninitiated.

Upvotes: 1

Related Questions