注意,實現的方法必須是靜態的
<%...@ taglib uri="http://hxex.cn/vote" prefix="vote" %>
${vote.name}
${vote.title}
${vote:votetype(vote.votetype)}
${vote:pictype(vote.pictype)}
修改投票
/deleteVote.do?id=${vote.id}">刪除投票
修改選項
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
version="2.0">
package cn.hxex.vote.util;
public class VoteFunction ...{
public static String votetype(String votetype)...{
return SelectConst.getVoteTypeTitle(votetype);
}
public static String votetypeoptions(String defaultValue)...{
return SelectConst.getVoteTypeOptions(defaultValue);
}
public static String pictype(String pictype)...{
return SelectConst.getPicTypeTitle(pictype);
}
public static String pictypeoptions(String defaultValue)...{
return SelectConst.getPicTypeoptions(defaultValue);
}
}
http://blog.csdn.net/daryl715/archive/2007/02/11/1507387.aspx
新聞熱點
疑難解答