This really surprised me ! I have the following code in my JSP.
<c:param name="title" value="${slideShow.title}" />
This code was working till I refactored the SlideShow class and made all attributes public and removed getters/setters. So it seems to me that EL works only with getter and not direct attribute access. Is this true ? Is there any way to get it to work with direct attributes instead of going through getters ?
JSP EL relies strictly on Java Bean specification, so it cannot use other conventions to access property values.
Actually, you can read about this is StackOverflow EL tag description
So it's possible to invoke non-getter methods(not attributes) but only from certain EL vesion: