Presented by developerWorks, your source for great tutorials
ibm.com/developerWorks
java.lang.Integer
NESTED
atBegin
java.lang.Integer
AT_BEGIN
atEnd
java.lang.Integer
AT_END
Method level JavaDoc tags for Custom Tags
Now here is a little something different. In the servlet example, all of the special
JavaDoc tags were at the class level. The custom tag example uses JavaDoc tags at
the method level to define custom tag attributes for the three attributes in this
example  
includeBody
,
includePage
, and
iterate
:
/** Getter for property includePage.
* @return Value of property includePage.
* @jsp.attribute
required="true"
*
rtexprvalue="true"
*
description="The includePage attribute"
*/
public boolean isIncludePage() {
return this.includePage;
}
...
/** Getter for property includeBody.
* @return Value of property includeBody.
* @jsp:attribute
required="true"
*
rtexprvalue="true"
*
description="The includeBody attribute"
*/
public boolean isIncludeBody() {
return this.includeBody;
}
...
/** Getter for property iterate.
* @return Value of property iterate.
* @jsp:attribute
required="true"
*
rtexprvalue="true"
*
description="The iterate attribute"
*/
public int getIterate() {
return this.iterate;
Enhance J2EE component reuse with XDoclets
Page 23 of 49






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

j2ee web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Jsp Web Hosting Cheapest Web Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved