views:

100

answers:

3

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

+1  A: 

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.

Brian Agnew
A: 

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.

BalusC
I am using 64 bit... that does NOT allow Eclipse for Java EE devs........
Dan
No? Eclipse is written in Java. Java is platform independent. It's a matter of having the right JVM. Sure the problem lies somewhere else :)
BalusC
+1  A: 

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.

trashgod