A
A
Andrey Lyubimenko2019-12-17 12:07:17
JavaScript
Andrey Lyubimenko, 2019-12-17 12:07:17

Why is the server not receiving anything?

I’m trying to apply, study AJAX, but a problem immediately arose - the field value does not come to the server, and in general the GET request in the browser field looks like this: localhost:8080/?myInput=hello , I don’t understand why my servlet is not registered, and, accordingly, not I can catch this variable on the server and output it to the console.
Can you please tell me where is the bug?
5df89a570d401259209183.png
5df89a687e08e309713946.png
5df89a7128f16030834002.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arman, 2019-12-17
@Arik

so on the second screen what URL did you do? use myInput there ,
and in the controller (screen 3) wait for GET inputValue

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question