I have two files, one is the HTML file that prompts the user to enter some text in the textfield. When the user enters the text and clicks the submit button. A servlet is invoked to display the length of the servlet. Now after displaying the length, the servlet should prompt the user again to enter text.
Now what I am doing is I have a servlet to display the length and again below it I display a textbox prompting the user to enter text and then Submit button.When the user click on submit I invoke the same servlet again. When I try to invoke the servlet it gives 404 error.
What i wanted to know is
1. Is my logic right? 2. why is it giving 404 error? 3. If the logic is wrong what is the right way to do it?