questo problema l'ho risolto:
però c'è una cosa che ancora nn capisco di sti url.codice:<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Banca JSP</title> <script type="text/javascript"> function deleteRecord(id) { var obj = document.getElementById('id_hidden'); obj.value = id; document.form_cancella.submit(); } </script> </head> <body> <table> <thead> <th> ID </th> <th> ENTRATE </th> <th> USICTE </th> <th> CAUSALE </th> <th> DATA </th> </thead> <c:forEach items="${requestScope.list}" var="lists"> <tr> <td> <c:out value="${lists.id}"/> </td> <td> <c:out value="${lists.entrate}"/> </td> <td> <c:out value="${lists.uscite}"/> </td> <td> <c:out value="${lists.causale}"/> </td> <td> <c:out value="${lists.data}"/> </td> <td> Elimina </td> </tr> </c:forEach> </table> <form action="Insert" method="post"> <input type="text" name="txtEntrate" value="100"/> <input type="text" name="txtUscite" value="0"/> <input type="text" name="txtCausale" value="jsp 1"/> <input type="submit" name="Submit" value="Submit" /> </form> <form method="post" action="Delete" name="form_cancella"> <input type="hidden" name="delete" value="" id="id_hidden"/> </form> </body> </html>
dopo il clic su elimina e la conseguente operazione di delete l'url si chiama così:
http://localhost:8080/BancaJSP/Delete
con Delete che è il nome della servlet, anche se questa fa il forwars su index.jsp.
perchè continua a esserci la servlet in mezzo alle scatole??