I have spent a lot of time trying to get the .tld file generated from my tag lib Java source.
1) in project properties, XDoclet Configuration, I have a config for my generation. A webdoclet is defined and contains a fileset and a jsptaglib element.
2) the fileset element contains the proper dir element pointing to my source files. (**/*Tag.java)
3) the jsptaglib element contains the minimum: the short name and the destination file (test.tld)
4) the java files contains the comment
/* * @jsp:tag name="test" bodycontent="JSP" tag-class="taglib.TestTag" */just before the class definition and the comment
/* * @jsp:attribute name="value" required="true" rtexprvalue="true" type="java.lang.String" */just before the setter setValue of the class.
<tag>...</tag>portion. Only this is generated:
<taglib> <tlib-version>1.0</tlib-version> <jsp-version>1.2</jsp-version> <short-name>test</short-name> </taglib>
I found out what the problem was... a missing star in the first line of the comment to make the comment block a JavaDoc compliant block.
/** * @jsp:tag name="test" bodycontent="JSP" tag-class="taglib.TestTag" */