You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Aleksandr Mashchenko (JIRA)" <ji...@apache.org> on 2016/10/31 20:09:59 UTC

[jira] [Created] (WW-4705) Add support for long type to tag

Aleksandr Mashchenko created WW-4705:
----------------------------------------

             Summary: Add support for long type to <s:date> tag
                 Key: WW-4705
                 URL: https://issues.apache.org/jira/browse/WW-4705
             Project: Struts 2
          Issue Type: Improvement
          Components: Core Tags
    Affects Versions: 2.5.5
            Reporter: Aleksandr Mashchenko
            Assignee: Aleksandr Mashchenko
             Fix For: 2.5.6


It will allow to display timestamps of long type w/o converting them and 
to do some arithmetics on date on JSP w/o creating intermediate date object.

E.g.

{code:xml}
<s:date name="timestamp_of_type_long" format="HH:mm"/>
{code}

and

{code:xml}
<s:set var="d" value="date.time + (3 * 60 * 1000)"/>
<s:date name="#d" format="HH:mm"/>
{code}





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)