Pessoal tou seguindo uma apostila da Caelun.. mas tá dando esse erro:
javax.servlet.ServletException: Bad version number in .class file
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:273)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
Segue abaixo o código:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Escola Estadual </title>
</head>
<body>
<%@ page import="java.util.*,dao.*, to.*" %>
<%
AlunoDAO dao = new AlunoDAO();
List<Aluno> alunos = dao.getLista();
for (Aluno aluno : alunos ) {
%>
<li> <%=aluno.getNome()%>, <%=aluno.getIdade()%>:
<%=aluno.getEndereco()%> </li>
<%
}
%>
</body>
</html>
O que podera estar errado?
This message was edited 1 time. Last update was at 06/05/2009 10:13:25
|