The cleanest way would probably be to add an accessor to your Action that return new Date(value). Something like:
public Date getDateValue () { return new Date(value); } Then in your page you can use: <s:text name="format.date.short"><s:param value="${dateValue}"/></s:text> <s:text name="format.time.short"><s:param value="${dateValue}"/></s:text> (*Chris*) On Thu, Oct 16, 2008 at 8:42 AM, Pablo Vázquez Blázquez <[EMAIL PROTECTED] > wrote: > Hi, > > I have a long representing a date. How can I get the date and time > associated in a jspx? > > I tried: > > format.date.short={0, date, short} > format.time.short={0, time, short} > > <s:text name="format.date.short"><s:param value="${value}"/> > <s:text name="format.time.short"><s:param value="${value}"/> > > But it gives me "null null", for instance with value = 1224170724804 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >