提交表单到servlet时出现空白页面,但又不报错

碰到问题时的部分问题代码如下:


<form action="<%=request.getContextPath() %>/LoginServlet" onsubmit="return login();" method="post">

我在里面加了一段:?function=login后就可以正常运行了。

<form action="<%=request.getContextPath() %>/LoginServlet?function=login" onsubmit="return login();" method="post">

猜你喜欢

转载自blog.csdn.net/qq_36109477/article/details/85076233