Erro jsp Http Status 500  XML
Índice dos Fóruns » Desenvolvimento Web
Autor Mensagem
akiles
JavaChild
[Avatar]

Membro desde: 13/12/2007 19:21:10
Mensagens: 100
Localização: não
Offline

Boa noite a todos..,,
Estou começando a desenvolver em java jsp estou com alguns problema, tem com alguem me ajudar, eu estou com seguinte erro.

Alguem sabe o eu fiz de errado e pode me ajudar
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
thiago.filadelfo
Virtual Machine Man
[Avatar]

Membro desde: 07/07/2007 00:32:26
Mensagens: 579
Localização: São Paulo
Offline

Olá

O erro que está ocorrendo é por causa da sua JSP que tem um import que ele não consegue achar

Unable to compile class for JSP.
line: 12 in the generated java file
Syntax error on token "import", Identifier expected after this token

Verifica na linha 12.
Se for possível postar os código podemos ajuda-lo melhor.


Espero ter ajudado
Flwss

[Email] [MSN]
akiles
JavaChild
[Avatar]

Membro desde: 13/12/2007 19:21:10
Mensagens: 100
Localização: não
Offline

Boa noite Thiago..
essa e a jsp que estou usando

<%@page import="br.com.site.museu.computador.carrega.os.dados.Usuarios"%>
<%@page import="java.util.List"%>
<%@page import="br.com.museu.computador.UsuarioDAO"%>
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.util.*, br.com.museu.computador.*," %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
body {
background-color: #000;
text-align: center;
color: #006;
}
#form1 p {
font-weight: bold;
color: #FFF;
font-size: 36px;
}
</style>
</head>

<body>
<blockquote>
<blockquote>
<form id="form1" name="form1" method="post" action="">
<table width="1430" border="0">
<tr>
<td><img src="Pictures/um.png" width="99" height="157" /><img src="Pictures/dois.png" width="93" height="157" /><img src="Pictures/tres.png" width="94" height="157" /><img src="Pictures/quatro.png" width="114" height="157" /><img src="Pictures/sinco.png" width="117" height="157" /><img src="Pictures/seis.png" width="92" height="157" /><img src="Pictures/sete.png" width="108" height="157" /><img src="Pictures/oito.png" width="98" height="157" /></td>
</tr>

</table>
<p>Seja bem vindo a Mundo totalmente incrivel você não vai quere mais sai daqui</p>
<hr />

<table>
<%
UsuarioDAO dao = new UsuarioDAO();
List<Usuarios> user = dao.getList();
for (Usuarios usuario : user){
%>
<tr>
<td><%=usuario.getId()%></td>
<td><%=usuario.getNome() %></td>
</tr>
<%
}
%>
</table>
</table>

</form>
</blockquote>
</blockquote>
</body>
</html>
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
thiago.filadelfo
Virtual Machine Man
[Avatar]

Membro desde: 07/07/2007 00:32:26
Mensagens: 579
Localização: São Paulo
Offline

Ola

Provavelmente deva ser nesta linha


Faça assim


Troquei a virgula (,) por ponto e virgula (. Caso não corrigi podemos dividir em dois imports.


Espero ter ajudado

[Email] [MSN]
 
Índice dos Fóruns » Desenvolvimento Web
Ir para:   
Powered by JForum 2.1.8 © JForum Team