Pessoal me ajudem…
Está dando erro descrito no titulo e não consigo consertar…
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Noticias</title>
</head>
<%@page import="java.io.*"%>
<%@page import="java.sql.*"%>
<%@page import="Connect.ConnectBD"%>
<body>
<%
PrintWriter saida = null;
Connection con = null;
ConnectBD objCon = new ConnectBD();
ResultSet resultado = null;
try {
con = objCon.getConnection();
} catch (SQLException err) {
err.printStackTrace();
}
try{
Statement stmt = con.createStatement();
resultado = stmt.executeQuery("select titulo from noticia");
while (resultado.next()) {
saida.println(resultado.getString("titulo"));
}
}catch(SQLException e){
e.toString();
}
%>
</body>
</html>