Register / Login
Win a copy of
Kotlin in Action
this week in the
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Struts 2 properties setting for Date
posted 9 years ago
i'm trying to override the sentence "an instant ago" returned by date tag. i have a code in
<s : date name="OrderDate" format="dd/MM/yyyy hh:ss" nice="true"/>
the result is "an instance ago". But i want the result like this "less than one minute". Therefore, I set up properties file in my application for
the code is
struts.date.format.past = less than one minute
However, the whole page of order date returns the same sentence "less than one minute" even the order date was two days ago.
I'm just wondering what I have missed to override the default
returned by struts 2.
[ February 29, 2008: Message edited by: Helen Spring ]
Don't get me started about those stupid
Boost this thread!
I have two questions.
Internationalization and Word Order
Sorting with Comparable
Hibernate Criteria with a one-to-many association