0
我有一個doPost()方法Servlet中下拉列表提交表單,並獲得選擇的數據
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
LOGGER.debug("Form Submitted with username: " + request.getAttribute("username"));
}
和我的JSP
<select name="username" onchange="this.from.submit();">
<c:forEach var="ovr" items='${overrides}'>
<option value="${ovr.overrideId}">${ovr.userId}</option>
</c:forEach>
</select>
沒有什麼記錄,這表明沒有提交表單...
感謝哎呀,愚蠢的錯誤 – sonx 2011-05-13 06:47:16
如果接受了一些答案,你會得到更多的人幫助你。 – Kal 2011-05-13 18:52:20