The doPost method cannot be executed

The dopost method cannot be executed, but the doget method can be executed

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

The method that has been written before uses post, and the rewritten dopost method is still not called.

solved! !
** There are two problems

  1. The location of my directory login.html is wrong, it should be released
  2. My action is correct, that is, the location of login.html is wrong and the redirection page fails

**

Guess you like

Origin blog.csdn.net/weixin_45384457/article/details/128222305