Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 properties setting for Date

 
Helen Spring
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic