score:1

Accepted answer

i knew this looked familiar. sorry my last answer didn't fix all your issues.

your current problem is here;

public boolean testlogin(@requestparam string login) {

should be

public boolean testlogin(@requestbody string login) {

edit:: second problem.

your handlechange function isn't taking in any values! it should look more like this;

handlechange(value) {
    this.setstate({login: value});
}

when your input field calls this function, it needs to pass a value from the input into the state. your current code is essentially the same as this;

this.state.login = this.state.login;

which obviously isn't going to get you anywhere.

try that change. if it still does not work, be sure you open your dev-tools in your browser and step through the code line by line to be sure it is executing and storing the values you want it to.


Related Query

More Query from same tag