How to implement “instanceOf” in JSTL

久未见 提交于 2019-11-29 13:13:23

${foo.class.name} returns the fully qualidied name of foo.

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.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!