<%
String myClass = student.getStud_class();//从数据库获取该生的班级
%>
<td>
<select name="stud_class">
 <option value="一年级" <%if (myClass.equals("一年级")) out.print("selected");%> >一年级</option>
 <option value="二年级" <%if (myClass.equals("二年级")) out.print("selected");%> >二年级</option>
</select>
</td>

相关文章:

  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-26
相关资源
相似解决方案