当我选择更改下拉列值时,它未显示所选值。它继续显示初始值。只有我如何显示所选值? 我的下拉菜单: JSP:
<body onload="form1.submit();">
<form name="form1" action="#" >
<select id="ddl" name="ddl" onchange="submit();">
<% while (res.next()){%>
<option value="<%=res.getString("ID")%>"><%=res.getString("UserId")%><%}
String Per=request.getParameter("ddl");
out.println(Per);%>
</form>
</body>