I have written two java classes, with a constructor and an instance method to return an JSON array. I want to access instance of these classes in groovy and call the getArray method on these objects I have instantiated. My problem is I do not know how to access those getArray methods?? Here is some code:
import JSONEncounterDesk;
import JSONHelpDesk;
import org.codehaus.groovy.grails.web.json.JSONObject
class UsersController {
def index() {
JSONEncounterDesk currEncounterDesk = new JSONEncounterDesk();
JSONHelpDesk currHelpDesk = new JSONHelpDesk();
return render(contentType: 'text/json') {
ret
}
}
}
from Newest questions tagged java - Stack Overflow http://ift.tt/1Id9BWB
via IFTTT
Aucun commentaire:
Enregistrer un commentaire