Is there any way to access a field of a Java class using EL if a getter for that field does not exist?
For example, let's say I have a Java class with a field called foo
. I know that if I also have a method in the class called getFoo()
I can do this on a jsp page using this syntax:
object.foo
However, let's say getFoo()
does not exist (and I have no way of creating it because I do not have access to the Java class). How then can I access the foo
field using EL in my jsp?