userimage

How to implement “instanceOf” in JSTL

Or something like to get the class name or type name
so that can work on major popular web container/servers?
userimage


${myString.class.name} returns the fully qualified name of myString.


But instanceof being already something you should rarely use in a well-design OO program, it should be used even less in the JSP EL, where methods are called dynamically without caring of the actual type, and where the end goal should only be to generate markup.

Answer is