Erro Displaytag (RESOLVIDO)

3 respostas
G

alguem poderia me ajudar com esse erro que esta dando no netbeans.

init:

deps-module-jar:

deps-ear-jar:

deps-jar:

library-inclusion-in-archive:

library-inclusion-in-manifest:

compile:

compile-jsps:

log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.JspRuntimeContext).

log4j:WARN Please initialize the log4j system properly.

Compiling 1 source file to D:\Projetos\site\build\generated\classes

D:\Projetos\site\build\generated\src\org\apache\jsp\admin\listar\lista_005ftipo_jsp.java:141: } expected

D:\Projetos\site\build\generated\src\org\apache\jsp\admin\listar\lista_005ftipo_jsp.java:49: try without catch or finally

try {

2 errors

D:\Projetos\site\nbproject\build-impl.xml:353: The following error occurred while executing this line:

D:\Projetos\site\nbproject\build-impl.xml:141: Compile failed; see the compiler error output for details.

BUILD FAILED (total time: 0 seconds)

3 Respostas

C

Tem certeza que esse erro é no displaytag ? tá com cara de erro de scriptlet no jsp. Vc pode postar o jsp ? Conforme a mensagem do erro, tem um try sem um catch, ou finally.

G

<%@taglib uri=“http://java.sun.com/jsp/jstl/core” prefix=“c”%>
<%@taglib uri=“http://java.sun.com/jsp/jstl/sql” prefix=“sql”%>
<%@ taglib uri=“http://displaytag.sf.net” prefix=“display”%>

.:Listar Tipos:.
<body>
    <div id="tudo">
        <div id="direito">
            <div id="topo"></div>
            <div id="centro">
                <sql:setDataSource
                var="conexao" dataSource="jdbc:mysql://localhost/teste,com.mysql.jdbc.Driver,root," 
                />
                <fieldset>
                    <legend>Lista de Tipos</legend>
                    <sql:query dataSource="${conexao}" var="tipos">
                        SELECT * FROM tipo order by idTipo
                    </sql:query>

                    <display:table name="tipos">
                        <display:column property="idTipo" title="Código" />
                        <display:column property="descricaoTipo" title="Tipo"/>
                    </display:table>
                </fieldset>
            </div>
        </div>
    </div>
</body>
G

resolvido, problema com as dependencias vlw a ajuda.

Criado 23 de outubro de 2006
Ultima resposta 24 de out. de 2006
Respostas 3
Participantes 2