radio框判断:
<input type="radio" name="gender" value="男" id="male" <c:if test="${cstm.gender eq '男' }">checked='checked'</c:if> />
判断是否为空:
if(cname != null && !cname.trim().isEmpty()) { sql.append(" and cname like ?"); params.add("%" + cname + "%"); }
传入servlet
<a href="<c:url value='/CustomerServlet?method=preEdit&cid=${cstm.cid }'/>">编辑</a>