Like by clicking on the button in the jsp to send the post to the server without reloading the page?

Hello, I am interested in the question of how to make by clicking on the button in the jsp to send the request to the server without reloading the page, and it is a jsp with the goods and I want by clicking the button next to the item to add the item to your cart! tell me how this is done, I will be grateful if tell me how this is done correctly, the examples also will be happy! Thank you.
June 8th 19 at 16:48
1 answer
June 8th 19 at 16:50
Solution
jsp on the client is converted into html and to make a request to the backend without restarting the page you need to use ajax. Look here Vanilla js or jQuery
Thank you I read but I'm purely wondering that if you hang a normal form post and button and when pressed to send to the server to do what you want, but the server is not to redirect? - Darius.Conroy commented on June 8th 19 at 16:53
The question is removed, checked, everything is exactly the page is reloaded))))) - Darius.Conroy commented on June 8th 19 at 16:56

Find more questions by tags TomcatJava servletsJava EEJSPJava