A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Struts 2 properties setting for Date
Joined: Feb 29, 2008
Feb 29, 2008 10:06:00
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 agree. Here's the link:
subject: Struts 2 properties setting for Date
I have two questions.
Internationalization and Word Order
Sorting with Comparable
Hibernate Criteria with a one-to-many association
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015