I've read "Using Dojo and JSON to Build Ajax Applications", a great article by Zarar Siddiqi, I am trying to run this sample to get a feeling of how json works. I have some questions for you, it's not quite clear how this is configured, so that, the java call can be made to backend, like where is servlet, and what's the config file, I only saw a java class been used in, AutoComplete, for example, but, the following is not triggered. where to make BookManager call, where is a servlet, how js file could possibly trigger java class, etc. Could you help me out with these puzzles, Thanks a lot!
JSONArray authorArray = new JSONArray();
if (author != null && !author.trim().equals("")) {
author = author.toLowerCase();
for (int i=0; i
if (authors[i].toLowerCase().startsWith(author)) {
authorArray.put(authors[i]);
}
}
} |