[Solved] java.lang.illegalstateexception: unable to forward after submitting the response

The root cause of this problem is this line of code:

The solution is to delete the line of super.

This line of code is simply understood as: the default implementation of the dopost method of the httpservlet returns the HTTP 405 status code.

The doget or dopost method of the parent httpservlet overrides the method you override. The default implementation of the doget or dopost method of the parent httpservlet returns an HTTP error with a status code of 405, indicating that the request method for the specified resource is not allowed.

Similar Posts: