如果#{myBean.birthdate}是java.util.Calendar或java.util.Date类型,我是否可以使用现有函数在 EL 本身内部对其进行格式化,输出类似于由DateFormat's SHORT、MEDIUM、LONGabdFULL输出类型产生的输出?
而不是输出完整的表单#{myBean.birthdate}: Wed Jan 19 19:01:42 WIT 2011,我更喜欢Jan 19, 2011的简单输出。
我应该#{formatBean.format(myBean.birthdate)}改用吗?