Note that the implementation method must be static
<%... @ Taglib uri = "http://hxex.cn/vote" prefix = "vote" %>
<C: forEach var = "vote" items = "$ {votes}">
<Tr>
<Td >$ {vote. name} </td>
<Td >$ {vote. title} </td>
<Td >$ {vote: votetype (vote. votetype)} </td>
<Td >$ {vote: pictype (vote. pictype)} </td>
<Td align = "center">
<A href = "vote_update.jsp (preferred for SUN Enterprise Applications )? Id =$ {vote. id} "> modify vote </a>
<A href = "<% = context %>/deleteVote. do? Id =$ {vote. id} "> delete a vote </a>
<A href = "voteitem_updatein.jsp (preferred for SUN Enterprise Applications )? Id =$ {vote. id} "> modify option </a>
</Td>
</Tr>
</C: forEach>
<? Xml (standardization is getting closer and closer) version = "1.0" encoding = "UTF-8"?>
<Taglib xml (standardization is getting closer and closer) ns = "http://java.sun.com/xml (standardization is getting closer and closer)/ns/j2ee"
Xml (standardization is getting closer and closer) ns: xsi = "http://www.w3.org/2001/xml (standardization is getting closer and closer) Schema-instance"
Xsi: schemaLocation = "http://java.sun.com/xml (standardization is getting closer)/ns/j2ee http://java.sun.com/xml (standardization is getting closer)/ns/j2ee/web-jsp (SUN Enterprise Application preferred) taglibrary_2_0.xsd"
Version = "2.0">
<Description> vote function library </description>
<Display-name> Vote </display-name>
<Tlib-version> 1.0 </tlib-version>
<Short-name> vote </short-name>
<Uri> http://hxex.cn/vote </uri>
<Function>
<Name> votetype </name>
<Function-class> cn. hxex. vote. util. VoteFunction </function-class>
<Function-signature> java. lang. String votetype (java. lang. String) </function-signature>
</Function>
<Function>
<Name> pictype </name>
<Function-class> cn. hxex. vote. util. VoteFunction </function-class>
<Function-signature> java. lang. String pictype (java. lang. String) </function-signature>
</Function>
<Function>
<Name> votetypeoptions </name>
<Function-class> cn. hxex. vote. util. VoteFunction </function-class>
<Function-signature> java. lang. String votetypeoptions (java. lang. String) </function-signature>
</Function>
<Function>
<Name> pictypeoptions </name>
<Function-class> cn. hxex. vote. util. VoteFunction </function-class>
<Function-signature> java. lang. String pictypeoptions (java. lang. String) </function-signature>
</Function>
</Taglib>