I want to use an is method in my bean instead of a getIsmethod. Is there a way to tell el that the method to use isn't a get method?
private boolean isSloAdmin = false;
//todo be nice to have it standard isMethod call
public boolean getIsSloAdmin() {
return isSloAdmin;
}
Then the EL code is
${myForm.isSloAdmin}
Thank you !
That doesn't have anything to do with Spring. The standard convention for a boolean getter is to use a method starting with
is
. So your method should beAnd you should access it using the JSP EL like any other bean property: