La versione di JBoss è la 4.0, ma non credo in realtà che il problema sia di compatibilità del JDK. Infatti io ho ricreato esattamente la stessa applicazione e non ho inserito nessuna classe già compilata. La prima jsp, quella di inserimento dati, infatti viene eseguita correttamente ed esegue l'aggiornamento nel DB correttamente. Per sicurezza posto anche il codice della prima jsp, quella che funziona:
codice:
<%@ page contentType="text/html" pageEncoding="UTF-8" %>
<%@ page import="booksworker.BooksWorker" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Books database</title>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div class="navigator">
Add
Delete
</div>
<div id="box_contenuti">
<%
//RICEVO I DATI DAL FORM ED EFFETTUO L'INSERIMENTO
String author = request.getParameter("author");
String title = request.getParameter("title");
String year = request.getParameter("year");
String remark = request.getParameter("remark");
if(author != null && author != "" && title != null && title != ""){
BooksWorker.insert(author, title, year, remark);
}
%>
<form method="get" action="index.jsp">
<table>
<tr>
<td class="label_inserimento">Author</td>
<td><input type="text" name="author" class="campo_inserimento"></td>
</tr>
<tr>
<td class="label_inserimento">Title</td>
<td><input type="text" name="title" class="campo_inserimento"></td>
</tr>
<tr>
<td class="label_inserimento">Year</td>
<td><input type="text" name="year" class="campo_inserimento"></td>
</tr>
<tr>
<td class="label_inserimento">Remark</td>
<td><input type="text" name="remark" class="campo_inserimento"></td>
</tr>
</table>
<input type="submit" value="Submit" class="bottone">
</form>
</div>
</body>
</html>