doPost方法执行不了

dopost方法执行不了,doget方法可以执行

<form action="/experiment03/LoginServlet" method="POST">

已经在前面写好了方法用的是post,重写的dopost方法还是没有被调用。

解决了!!
**存在两个问题

  1. 我的目录login.html位置放的不对,应该放出去
  2. 我的action没错,就是login.html位置不对导致跳转页面失败

**

猜你喜欢

转载自blog.csdn.net/weixin_45384457/article/details/128222305