Hello.
There was a need to do something on the JS button by clicking a button on the form and then start the servlet.
How is this possible to do?
ps
tried
document.location.href="${pageContext.request.contextPath}/NewServlet"; But error 405 occurs
HTTP Status 405 - HTTP method GET is not supported by this URL type Status report message HTTP method GET is not supported by this URL description The specified HTTP method is not allowed for the requested resource.
I realized the error with the lack of a GET handler in NewServlet.
Immediately another question arose how to change the GET method to POST in JS, if it is possible of course?