Register / Login
Win a copy of
Re-engineering Legacy Software
this week in the
Docker in Action
Struts 2 properties setting for Date
posted 8 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 word returned by struts 2.
[ February 29, 2008: Message edited by: Helen Spring ]
I have two questions.
Internationalization and Word Order
Sorting with Comparable
Hibernate Criteria with a one-to-many association