开发者

Javadoc for custom tags in JSP

开发者 https://www.devze.com 2023-03-06 13:09 出处:网络
I am creating a custom JSP tag using a class which extends TagSupport and a tld. I want to create a javadoc such that when a designer uses these tags, like for example in eclipse, on ctrl+space (in wi

I am creating a custom JSP tag using a class which extends TagSupport and a tld. I want to create a javadoc such that when a designer uses these tags, like for example in eclipse, on ctrl+space (in windows), the designer must get tag info and same thing should happen for each atribute in the ta开发者_JAVA百科g. I tried giving /** .. */ in class, it did not work. How to do this ? If there is an easier tool, please mention tutorial link.


It should go in <description> element of the <tag> and <attribute> elements in the .tld file.

E.g.

<tag>
    <description>This tag does foo.</description>
    <name>foo</name>
    ...
    <attribute>
        <description>Sets the value of foo.</description>
        <name>value</name>
        ...
    </attribute>
</tag>
0

精彩评论

暂无评论...
验证码 换一张
取 消