On Feb 23, 2005, at 15:07, Andrew Stevens wrote:
I don't see ContentLinkTag in your imports, so I assume it's another of
your classes in com.monkeycompany.tags; have you included ContentLinkTag
in the classpath/fileset being used by XDoclet? If not, the parser has
no way of knowing that your tag class extends one of
javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TagSupport or
javax.servlet.jsp.tagext.SimpleTagSupport, and so it won't be processed
by the jsptaglib template. Since you can get it to include the
SimpleTag details in the generated file, the servlet classes must be
available to the subtask, so the next most likely problem is that it
can't trace back from your tag through the inheritance hierarchy to one
of the required javax.servlet.jsp.tagext types.
Thanks for the help.
ContentLinkTag is in the same package, com.monkeycompany.tags, as all the other tags, including SimpleTag (I changed the source to put it in the same package).
The bits from build.xml below. This seems to be enough to pick up SimpleTag. I don't have tags on ContentLinkTag yet, but...Hmm.
ContentLinkTag derives from org.apache.struts.taglib.html.LinkTag, which is in Struts, but since I'm using the same class path for webdoclet as I am for compiling, and compiling works fine, it should work, no?
<path id="compile.classpath"> <pathelement location="${obj}"/> <fileset dir="${lib}"> <exclude name="axis.jar" /> <exclude name="jai_codec.jar" /> <exclude name="jai_core.jar" /> <exclude name="junit.jar" /> <exclude name="mysql-connector-java-3.0.6-stable-bin.jar" /> <include name="*.jar" /> </fileset> <fileset dir="${fo.lib}"> <include name="*.jar"/> </fileset> <fileset dir="${lib.mccommon}"> <include name="*.jar"/> </fileset> <fileset dir="${lib.mcdb}"> <include name="*.jar"/> </fileset>
<fileset dir="${lib.mcsearch}"> <include name="*.jar"/> </fileset>
</path>
<target name="xdoc" description="Generate XDoclet output"> <taskdef name="webdoclet" classname="xdoclet.modules.web.WebDocletTask" classpathref="compile.classpath"/> <webdoclet destdir="${app.home}/tldtest"> <fileset dir="${src}"> <include name="**/tags/*.java"/> </fileset> <jsptaglib destdir="${app.home}/tldtest" shortName="mct" validateXML="true"/>
</webdoclet> </target>
-- Rick
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user