Sono riuscito a compilare la servlet ed ora c'è il file login.class in web-inf/classes
Ho creato questo web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>login</servlet-name>
<servlet-class>login</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>login</servlet-name>
<url-pattern>/servlets/login</url-pattern>
</servlet-mapping>
</web-app>
avendo fatto questo web.xml il codice che segue della home page va bene? MA Tomcat mi da errore dicendo che la risorsa specificata nel action del form quando clicco sul submit del form non è disponibile
il codice dell'index è questo (homepage)
<HTML>
<HEAD>
<LINK REL="stylesheet" TYPE="text/css" HREF="css/index.css" MEDIA="all" />
<TITLE>
RESTAURANTS
</TITLE>
</HEAD>
<BODY>
<DIV id="total">
<DIV id="menu">
<FORM id="form_login" METHOD="post" ACTION="/servlets/login">
Username: <INPUT TYPE="text" />
Password: <INPUT TYPE="password" />
<INPUT TYPE="submit" VALUE="login" />
Registrati
</FORM>
</DIV>
<DIV id ="content">
</DIV>
</DIV>
</BODY>
</HTML>
QUAL'Eè L'ERRORE???????????