Here, I am trying to print 10 labels using getter methods there are 10 getter methods in my bean class named as getLabel1(),getLabel2().......getLabel10(). instead of writing these 10 getter methods, I am using here foreach loop in jstl for each iteration i am combining the iteration value to getMethod name. I am also trying like this
${labelsBean.getLabel+""+${i}+""+()} and ${labelsBean.getLabel+${i}+()} and ${labelsBean.getLabel${i}()} and ${labels.label[i]}
not working all above can you please give me a suggestion to solve this error