<p>
<form action="logout.java" method="post">
<input type="button" value="Logout">
</form>
</p>
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
response.sendRedirect("login.jsp");
}
的按鈕單擊事件的Java方法,但是當我按一下按鈕沒有任何反應?如何呼籲JSP
更改按鈕提交 –