Cannot call sendRedirect() after the response has been committed (after sending post form)

I have form with method=”post” in jsp page with action equals the same page. Then, I want to do sendredirect, but I already did forward by sending form.
What to do?

<form:form action="register" method="post" modelAttribute="userForm">


Source: jsp

Leave a Reply