This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 2 properties setting for Date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 properties setting for Date" Watch "Struts 2 properties setting for Date" New topic
Author

Struts 2 properties setting for Date

Helen Spring
Greenhorn

Joined: Feb 29, 2008
Posts: 1
hi

i'm trying to override the sentence "an instant ago" returned by date tag. i have a code in JSP



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 struts to read.

the code is


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 ]
 
Consider Paul's rocket mass heater.
 
subject: Struts 2 properties setting for Date
 
It's not a secret anymore!