value from resource bundle as pattern in formatDate

Posted by binary_runner on Stack Overflow See other posts from Stack Overflow or by binary_runner
Published on 2010-05-21T15:05:59Z Indexed on 2010/05/21 15:10 UTC
Read the original article Hit count: 175

Filed under:
|
|
|

I want to read pattern for JST formatDate also from resource bundle but this naive approach does not working, what I'm doing wrong ?

in com/company/MyPortlet.properties is this key:

company.date.format = yyyy-MM-dd HH:mm:ss

In page I have:

<fmt:setBundle basename="com.company.MyPortlet"/>
<fmt:formatDate value="${date}"  pattern="${company.date.format}" />

© Stack Overflow or respective owner

Related posts about java

Related posts about jsp