Register / Login
This week's book giveaway is in the
We're giving away four copies of
and have Lucas da Costa on-line!
Win a copy of
this week in the
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Struts 2 properties setting for Date
posted 12 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 ]
Well THAT's new! Comfort me, reliable tiny ad:
Thread Boost feature
Boost this thread!
I have two questions.
Internationalization and Word Order
Sorting with Comparable
Hibernate Criteria with a one-to-many association