This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, I'm trying to run an example from the book "Head First Servlets & JSP" (O'Reilly 2nd Edition).
A simple ServletContextListener (Page 168).
At first, I got a common error: HTTP Status 404. The problem was in my deployment descriptor, web.xml --> <url-pattern>ListenTest.do</url-pattern> without the slash before ListenTest.do
I put the "/" and redeployed the application. When I type again the url "http://localhost:8080/listenerTest/ListenTest.do", my browser (Firefox) ask me for a program to open files with the extension .do
It seems that the browser doesn't recognize ListenTest.do like a servlet. The following is my web.xml: