puntovale
06-05-2004, 16:40
ho installato Tomcat 5 fin qui tutto bene.
Nella cartella ...tomcat\webapps\ROOT\ ho creato una nuova cartella "prova" in cui vado ad inserire il mio file index.html che è così fatto
<form action = "/servlet/WelcomeServlet" method = "get">
<p><label>Click the button to invoke the servlet
<input type = "submit" value = "Get HTML Document" />
Index.html come vedete va a richiamare una servlet WelcomeServlet quando si pressa sul tasto.
La Servlet WelcomeServlet.class l'ho memorizzata nella cartella ...tomcat\webapps\ROOT\prova\WEB-INF\classes\ da me creata
Perche il tutto non funge ????? o meglio perchè quando premo il tasto tomcat mi da ERRORE 404 page not found ????
grazie
Nella cartella ...tomcat\webapps\ROOT\ ho creato una nuova cartella "prova" in cui vado ad inserire il mio file index.html che è così fatto
<form action = "/servlet/WelcomeServlet" method = "get">
<p><label>Click the button to invoke the servlet
<input type = "submit" value = "Get HTML Document" />
Index.html come vedete va a richiamare una servlet WelcomeServlet quando si pressa sul tasto.
La Servlet WelcomeServlet.class l'ho memorizzata nella cartella ...tomcat\webapps\ROOT\prova\WEB-INF\classes\ da me creata
Perche il tutto non funge ????? o meglio perchè quando premo il tasto tomcat mi da ERRORE 404 page not found ????
grazie