ho la seguente pagina jsp:
Tomcat dice che c'è un problema alla riga :codice:<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ page language="java" import="java.sql.*" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <body> <jsp:useBean id="utente" scope="session" class="mucca.InfoUtente" > </jsp:useBean> <%= utente.getNome() %> <% Class.forName("com.mysql.jdbc.Driver").newInstance() ; // Imposta la connessione al server e al database Connection connect = DriverManager.getConnection("jdbc:mysql://localhost/java_db","root",""); // N.B. la password vuota si scrive password= %> Torna a index </body> </html>
codice:DriverManager.getConnection("jdbc:mysql://localhost/java_db","root","");

Rispondi quotando