I got questions when I practice the cookie example from: http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-Cookies.html
There is two servlet, SearchEnginesFrontEnd.java which generate the HTML form and another CustomizedSearchEngines.java which takes care of redirect and search.
My problems is that when I click the submit button on form, it can not find the hall.CustomizedSearchEngines, also I have found the problems, but I can not fix it.
I am using tomcat, I have directory under tomcat\wevapps, I put all the servlet under tomcat\webapps\project\web-inf\classes\hall.
I invoked the SearchEngineFrontEnd under http://localhost:8080/poject/servlet/....
until now every thing is fine, but when I push submit button, another servlet can not be found. I notice the path was shown on the browser is: "http:\\
That is why another servlet can not be found since the path is not right, they have double "servlet".
I have used form action is:
if this action is directly put in the HTML, it work perfectly.
I wonder if someone can give me some ideas why it is not work.
thanks in advance.