注意,实现的方法必须是静态的
<%...@ taglib uri=" http://hxex.cn/vote " prefix="vote" %>
${vote.name}
${vote.title}
${vote:votetype(vote.votetype)}
${vote:pictype(vote.pictype)}
Utilização do sistema
删除投票
Como usar
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance "
xsi:schemaLocation=" http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd "
versão="2.0">
pacote cn.hxex.vote.util;
classe pública VoteFunction ...{
public static String votetype(String votetype)...{
retornar SelectConst.getVoteTypeTitle(votetype);
}
public static String votetypeoptions(String defaultValue)...{
retornar SelectConst.getVoteTypeOptions(defaultValue);
}
public static String pictype(String pictype)...{
retornar SelectConst.getPicTypeTitle(pictype);
}
public static String pictypeoptions(String defaultValue)...{
retornar SelectConst.getPicTypeoptions(defaultValue);
}
}
http://blog.csdn.net/daryl715/archive/2007/02/11/1507387.aspx