After banging my head against my fist all day, I finally got servlets to work all by myself. The thing I was missing turned out to be some tags in my web.xml file. Get this, PHP people. To do a simple Hello World program, servlets need a separate xml program that tells the servlet engine where to find your class:
<servlet-mapping> <servlet-name> Hello </servlet-name> <url-pattern> /Hello </url-pattern> </servlet-mapping>
5:17:10 PM
|