I have an ajax function which should return a list of objects. I’m sorry for asking this i’m a beginner in grails and web programming
For example my ajax function should return the combination of this
def ajaxFunction= {
//it should return all the following object
List<String> stringList = ......
List<ClassA> classAList = .....
ClassB objectOfB = ....
int count = ...
.
.
.
//I don't know who to return this all... (stringList , classAList , objectOfB ,count)
}
I think it better to creat a bean class. like this
so you can use this bean class and return this bean class