Dúvida sobre tags em JSP

0 respostas
W

arquivo taglib.tld:

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE taglib
        PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
	"http://java.sun.com/j2ee/dtd/web-jsptaglibrary_1_2.dtd">

<taglib>

  <tlib-version>1.0</tlib-version>
  <jsp-version>1.2</jsp-version>
  <short-name>test</short-name>
  <uri>classicTags</uri>
  
  <tag>
    <name>mark</name>
    <tag-class>MarkerTag</tag-class>
    <body-content>JSP</body-content>
  </tag>       
 
</taglib>

minha page.jsp que usa a tag:

<%@ taglib uri="classicTags" prefix="test" %>


<html><body>

<test:mark />

</body></html>

o tag handler:

import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;

public class MarkerTag extends BodyTagSupport {
	
    public int doStartTag() throws JspException {
        try {
	pageContext.getOut().println("doStartTag OK");
        } catch(Exception e) {
        }
		
        return SKIP_BODY;
    }
}

aí tudo isso junto gera um erro....

An error occurred at line: 6 in the jsp file: /page.jsp
MarkerTag cannot be resolved to a type
3: 
4: <html><body>
5: 
6: <test:mark />
7: 
8: </body></html>

o que eu faço ?? alguém me ajuda ai valeu !

Criado 26 de julho de 2009
Respostas 0
Participantes 1