81,092
社区成员
发帖
与我相关
我的任务
分享
<%
String syhhy = (String)request.getAttribute("syhhy");
//不知道你的at是什么类型,姑且当做map
Map at = (Map)request.getAttribute("at");
String sid = (String)at.get("SID");
//要输出的html字符串
StringBuffer htmlStr = new StringBuffer("<option value=\"").append(sid)
.append("\" ").append(syhhy.equals(sid) ? "selected" : "")
.append(">").append(at.get("SNAME").toString().trim()).append("</option>");
%>