Jstl

1 resposta
N

To querendo usar JSTL mas está dando um erro.
Tem um que eu fiz e deu tudo blz, mas esse eu não consigo encontrar o erro.

c.tld
<?xml version="1.0" encoding="UTF-8" ?>

<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd"
    version="2.0">

    <description>Teste</description>
    <display-name>JSTL Core</display-name>
    <tlib-version>1.1</tlib-version>
    <short-name>c</short-name>

    <uri>http://java.sun.com/jstl-el/core</uri>
    
    <tag>
    	<description>dasda</description>
    	<name>out</name>
    	<tag-class>org.apache.taglibs.standard.tag.rt.core.OutTag</tag-class>
    	<body-content>JSP</body-content>
    	
    	<attribute>
    		<name>value</name>
    		<required>true</required>
    	</attribute>
    	
    	<attribute>
    		<name>default</name>
    		<required>false</required>
    	</attribute>
    	
    	<attribute>
    		<name>escapeXML</name>
    		<required>false</required>
    	</attribute>
    </tag>

</taglib>
web.xml
...
	<taglib>
		<taglib-uri>http://java.sun.com/jstl-el/core</taglib-uri>
		<taglib-location>/WEB-INF/c.tld</taglib-location>
	</taglib>
...
teste.jsp
<%@ taglib uri="http://java.sun.com/jstl-el/core" prefix="c" %>

<!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title><c:out value="marcelo" /></title>
</head>
<body bgcolor="#FFFFFF">

Write your content here

</body>
</html>

erro: org.apache.jasper.JasperException: /teste.jsp(6,7) Unable to load tag handler class "org.apache.taglibs.standard.tag.rt.core.OutTag" for tag "c:out"

1 Resposta

N

snif snif :cry:

Criado 6 de janeiro de 2004
Ultima resposta 6 de jan. de 2004
Respostas 1
Participantes 1