Salve.

Non riesco a far funzionare un semplice esempio di Custom tag JSP.
Penso che l'errore dipenda dall'errata disposizione dei files. Eclipse infatti mi segnala questo come errore. Se invece provo a fare il deploy dell'applicazione mi si blocca Tomcat

Ecco la disposizione dei files dopo aver fatto l'Export WAR con Eclipse:
Codice PHP:
SimpleCustomTag
|
|-- 
WEB-INF
|   |-- classes
|   |   `-- ch06
|   |       |-- SimpleTag.class
|   |       
`-- SimpleTag.java
|   |-- example.tld
|   `-- web.xml
`-- index.jsp 
Ecco i sorgenti dei files:
1. index.jsp (penso sia qui l'errore!)
Codice PHP:
<html>
<
head>
<
title>Sample Custom Tag</title>
</
head>
<
body>
    <%@
taglib prefix="ch06" uri="/WEB-INF/example.tld"%>
    <
ch06:simple/>
</
body>
</
html
2. example.tld
Codice PHP:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
        PUBLIC "-//Sun Microsystems, Inc.//
        DTD JSP Tag Library 1.1//EN"
        "http://java.sun.com/j2ee/dtds/
        web-jsptaglibrary_1_1.dtd">



<taglib>
   <tlibversion>1.0</tlibversion>
   <jspversion>1.1</jspversion>
   <shortname>ch06</shortname>
   <uri></uri>
   <info>A simple tab library for the examples</info>

  <tag>
    <name>simple</name>
    <tagclass>ch06.SimpleTag</tagclass> 
    <info>Print some text</info>
    <bodycontent>empty</bodycontent>
  </tag>         
</taglib>
3. SimpleTag.java
Codice PHP:
package ch06;

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

public class 
SimpleTag extends BodyTagSupport {

    public 
int doStartTag() throws JspException {
        
JspWriter out pageContext.getOut();
        try {
            
out.print("Simple empty custom tag");
        } catch (
IOException ioe) {
            throw new 
JspTagException("I/O Exception");
        }
        return 
SKIP_BODY;
    }


Grazie dell'attenzione,
Matteo