Ecco la pagina che mi da l'errore sotto JBoss:
Grazie x l'aiuto!codice:<%@ page contentType="text/html" pageEncoding="UTF-8" %> <%@ page import="booksworker.BooksWorker" %> <%@ page import="java.util.*" %> <html> <head> <title>Delete</title> <link rel="stylesheet" href="style.css" type="text/css"> </head> <body> <% Enumeration names = request.getParameterNames(); while(names.hasMoreElements()){ String name = (String)names.nextElement(); StringBuffer sb = new StringBuffer(name); sb.deleteCharAt(0); BooksWorker.delete(sb.toString()); } %> <div class="navigator"> Add Delete </div> <div id="box_contenuti"> <form action="delete.jsp" method="post"> <table> <tr> <th>Author</th> <th>Title</th> <th>Year</th> <th>Remark</th> <th></th> </tr> <% //CREO LA LISTA DI TUTTI I LIBRI List<String> list = BooksWorker.getBooks(); //INIZIALIZZO A 0 L'ELEMENTO ID (CHE EQUIVALE A POSIZIONARE IL CURSORE DELL'ITERATORE //PRIMA DELL'ID STESSO, CHE E' IL PRIMO ELEMENTO) int id = 0; //CREO L'ITERATORE Iterator<String> it = list.iterator(); while(it.hasNext()){ //ASSEGNO ALL'ID IL PRIMO ELEMENTO id = Integer.parseInt(it.next()); out.print("<tr>"); for(int i = 0; i < 4; i++){ out.print("<td>"); out.print(it.next()); out.print("</td>"); } out.print("<td>"); String box = "<input name=r" + id + " type='checkbox'>"; out.print(box); out.print("</td>"); out.print("</tr>"); } %> </table> <input type="submit" value="Delete" class="bottone"> </form> </div> </body> </html>

Rispondi quotando