jsp - Accessing a field of a Java class directly in EL -


is there way access field of java class using el if getter field not exist?

for example, let's have java class field called foo. know if have method in class called getfoo() can on jsp page using syntax:

object.foo 

however, let's getfoo() not exist (and have no way of creating because not have access java class). how can access foo field using el in jsp?

is there way access field of java class using el if getter field not exist?

no. jsp el strict in requirement javabean-compliant classes. need getter field.

perhaps can wrap object in class does have getter, , fetches field reflection.


Comments