1
A
回答
2
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// fetch the username that was sent in the request
String username = request.getParameter("username");
// TODO: verify if the username is taken in the database
// based on the results set the value
request.setAttribute("isUsernameTaken", "true");
RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/register.jsp");
dispatcher.forward(request, response);
}
相關問題
- 1. Django - 在表單驗證後填寫表單值
- 2. 檢查表單驗證當用戶填寫表單角2
- 3. 驗證是否填寫了兩個表單域中的一個?
- 4. 驗證表格填寫完畢,HTML jQuery
- 5. MVC驗證 - 非必填字段在提交表單前被強制填寫
- 6. 用戶表單驗證,但填寫完成?
- 7. 驗證失敗後填充表單
- 8. 在HTML表單中,我們可以在用戶填寫表單時驗證文本字段嗎
- 9. 填寫HTML表單
- 10. 表單驗證
- 11. 表單驗證
- 12. 表單驗證
- 13. 表單驗證
- 14. 表單驗證()
- 15. 表單驗證
- 16. 驗證在Java中
- 17. 驗證在Java中
- 18. 填寫表單並在UIWebView中提交
- 19. 在C中用WatiN填寫表單#
- 20. 軌驗證從功能填寫領域
- 21. 玩框架Java - 表單驗證錯誤
- 22. 如何使用java做表單驗證?
- 23. Java的表單驗證我的網站
- 24. 如何在Rails中編寫JavaScript表單驗證?
- 25. 如何在Django中編寫好的表單驗證?
- 26. Excel中的可填寫表單清單
- 27. 表單驗證設置在表單
- 28. 在java中驗證數學表達式
- 29. 表單驗證在飛行
- 30. Ajax表單驗證在笨
http://stackoverflow.com/tags/servlets/info – BalusC 2011-02-19 13:14:02