if (errorMap?.size() > 0) {
// do something
}
to
if (errorMap) {
// do something
}
same thing in JSP, you can use:
sublist
def devices
int start
int end
def subdevices = devices[start..end]
if (errorMap?.size() > 0) {
// do something
}
if (errorMap) {
// do something
}
def devices
int start
int end
def subdevices = devices[start..end]