Hi i have been having problems with getting a servlet to run from a form. I have configured the web.xml as follows
when I run http://host/company/ChangePassword it works but when I try to access it from a jsp as part of a form i.e <form action="/ChangePassword" method="POST"> I get the 404 error.
If you do this with all of your links, form actions, and src attributes, everything in your app will be relative to the root of the web application and will be futur proofed against contextPath changes. [ July 19, 2007: Message edited by: Ben Souther ]
Originally posted by gary nubold: when I run http://host/company/ChangePassword it works but when I try to access it from a jsp as part of a form i.e <form action="/ChangePassword" method="POST"> I get the 404 error.
Compare the URLs. What's missing from your form action URL?