Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
//jsp

$.ajax({
type: "GET",
url: "WebPage",
data: dataString,
dataType: "json",

//if received a response from the server
success: function( data, textStatus, jqXHR) {
//our country code was correct so we have some information to display
if(data.success){

$('#ddl').multiselect();

}
//display error message
else {

}
},


});

//servlet
Gson gs = new Gson();
String json = gs.toJson(names);

How do I bind my string json variable to my dropdownlist in the jsp?
Posted
Updated 23-Oct-14 23:29pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900