Just got the book "Servlets and JSP" and I got stuck on the first example (that's gotta be some kinda record). I'm pretty sure it is a setup issue in Tomcat, I just don't know where to look. Basically I have a very simple .html form that that POSTs a request to Tomcat for SelectBeer.do:
Now when I hit the submit button, my browser (tried bth IE and Firefox) tries to download the file BeerSelect.do, it doesn't execute it. I tried messing with the xml file to see if it gets picked up by Tomcat, and I am pretty sure it does. E.g. when I screw up the mapping on purpose, I do get an error back from Tomcat saying that it cannto find that file. However if I set the mapping correctly, my browser askes me if I want to download the file (OK/Cancel) and that's it.
BeerSelect.do should be SelectBeer.do, or the opposite. (You set the url-pattern to /SelectBeer.do) Either the url pattern or the action of your html form is wrong.