What I do is add a method for formatting dates (formatDateTime()) to the
action base class. The method can then use the users Locale and TimeZone to
construct a DateFormat object.
public String formatDateTime(Date timestamp)
{
return getDateFormat().format(timestamp);
}
In th
Hi list!
I want to display a date in a user-specified manner (struts2 web-app)
Thus, there exists a form where users can specify date-format strings,
I validate them
and on another page, I want to use the date-tag to display the date in
the choosen format.
So I have a session-property "date
2 matches
Mail list logo