开发者

My First Tomcat Servlet

I se开发者_运维技巧em 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.]


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.


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜