}
return EVAL_BODY_INCLUDE;
}
@Override
public int doEndTag() throws JspException {
try {
StringBuffer results = new StringBuffer("");
// 因为下拉中包含下拉内容,所以只能在遇到结束标签时才能写select结束
results.append("</select>");
pageContext.getOut().write(results.toString());
} catch (IOException ex) {
throw new JspTagException("错误");
}
return EVAL_PAGE;
}
// 样式
protected String style;
// 名字
protected String name;
public String getStyle() {
return style;
}