I want to know about how to retrieve data from map.
I have three button.
Register, Update and Delete from Jsp page.
There are two JSP. First.jsp and Second.jsp.
I included first.jsp in second.jsp.aaa
The buttons are in second.jsp.
At First.jsp.
I have combobox for language change. It must be change language only when click button.
There are two language English and Japanese.
I send API class using ajax according to language id. If id=1(Japanese) and id=2(English).
I Wrote ajax api inside of combobox change function. Below is my code.
$.ajax({
url : 'aa/idsend',
cache : false,
type : 'GET',
dataType : 'json',
contentType : 'application/json; charset=utf-8',
data : "lid="+select,
success: function(data) {
},
});
I receive data from server the following format.
{data = Object {1: "Would you like to register?", 2: "Would you like to update?", 3: "Would you like to delete?"}
Above data are come from database. If I add new data into database the id become 4:"something have".
I want to know how to retrieve these data according button click event. If click register button I want to take register sentence only. The other is also like that.