Yes, the code runs: I'm testing with HTTP Resource test plugin in Firefox - I specify POST, and paste in my message body and submit. The plugin prints the server response (which identifies Apache Tomcat among other objects) and shows the message body. As you know, the message body does not contain the response - but the static content of an index.html file.
The code for the servlet follows: