Hi,
I'm using a simple MVC setup that runs under Tomcat: an index.html which invokes a servlet's doPost from a simple form. The servlet does some processing and displays the results by forwarding to a result.jsp file.
This all works fine, but I'm now trying to make another step, and am not sure if the error I get from Tomcat ("requested resource not available") is due to some technical problem or due to me not understanding something fundamental...
Once the results are displayed, I'm trying to "post" to the servlet again. I've taken the form that works in the index.html, and put it directly in result.jsp.
When running the application, everythings fine until I actually try to submit the form (the one that is included in result.jsp), i.e. try to post to the servlet again. I then get HTTP Status 404 - requested resource not available.
Am I doing something very silly? How can I otherwise "return" to the servlet form the jsp file?
Many thanks,
dante
I'm using a simple MVC setup that runs under Tomcat: an index.html which invokes a servlet's doPost from a simple form. The servlet does some processing and displays the results by forwarding to a result.jsp file.
This all works fine, but I'm now trying to make another step, and am not sure if the error I get from Tomcat ("requested resource not available") is due to some technical problem or due to me not understanding something fundamental...
Once the results are displayed, I'm trying to "post" to the servlet again. I've taken the form that works in the index.html, and put it directly in result.jsp.
When running the application, everythings fine until I actually try to submit the form (the one that is included in result.jsp), i.e. try to post to the servlet again. I then get HTTP Status 404 - requested resource not available.
Am I doing something very silly? How can I otherwise "return" to the servlet form the jsp file?
Many thanks,
dante