Java and java script | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Java and java script

i have a web application. written in java and js. I have an entity id that I select via a checkbox. Then I need to pass this selected ID value to the update method in the java code. How should I do it? from the main jsp to jsp update I switch with function updateCat() { window.location.href = "http://localhost:8080/Cats_war/jsp/update.jsp?catId=" + document.querySelector('.messageCheckbox:checked').value; } can't get id from url

8th Dec 2022, 7:16 PM
Alexandra Lebedeva
Alexandra Lebedeva - avatar
0 Answers