I am trying to learn JSP and Java Servlets. Tomcat is set up such that all of my files have to go into a subdirectory under the WEBAPPS directory.
My application is a simple user registration program.
Here's what it looks like under the kr directory:
So here's my problem. I start off the app in the index.html. From there I select an option that takes me to form1.jsp. I enter some data and hit submit.
Here's my form action
<form action="../register" method="get">
This works fine the first time.
So then from the second page, I decide I want to edit something on the first page. So I select Edit:
<form action="updateRegistration" method="POST">
<input type="hidden" name="actn" value="Edit">
<input type="submit" value="Edit"/>
This takes me to a servlet which does nothing more than send me back to the first page
url = "/hw5/conference.jsp";
RequestDispatcher dispatcher =
So now I'm back on the first page and I make my change and then I click submit. But this time I get a 404 error, "...the requested resource (/register) is not available
Please help me understand what I'm doing wrong, this is driving me nuts!!!
Here's a snippet from my web.xml file