By the way each time I modify the web.xml I am completely stopping the tomcat server and shutting down the browser.
Tomcat is Version 7, java is jdk 1.6, behaviour occurs on Windows XP and Windows 7.
This is not run from a WAR file, I am moving the files into the tomcat\webapp directory manually and have verified there is no older version of a war for this project in tomcat.
margaret gillon wrote:Tried that too and it did not work.
It sounds as if you do not understand what the URL pattern is for. You don't change it to "make things work", you set it to what you want the URL to get to the servlet to be. So it makes no sense to keep changing it. You set it, and change other things to match it.
Set it to something that makes sense, and then change the URL (in this case, the form action) to match it.
I can't tell anything about what Reverse3Servlet is supposed to do by its name (so it's probably not a good one), but let's run with it.
So let's make the URL mapping: <url-pattern>/reverse3</url-pattern>
Remember, you make this what you want it to be. Just make sure it's unique within the web app. This mapping is now the servlet path for the servlet.
Then, the action for your form would be:
Don't forget that the servlet path should be prefixed with the context path.