Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4705

Add support for long type to <s:date> tag

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.5
    • Fix Version/s: 2.5.8
    • Component/s: Core Tags
    • Labels:
      None

      Description

      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.

      <s:date name="timestamp_of_type_long" format="HH:mm"/>
      

      and

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

        Activity

        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Jenkins build Struts-JDK7-master #545 (See https://builds.apache.org/job/Struts-JDK7-master/545/)
        WW-4705 - Add support for long type to <s:date> tag (amashchenko: rev 8fe2bb8317088f6a24aea3a03f19a9f257cbec09)

        • (edit) core/src/main/java/org/apache/struts2/components/Date.java
        • (edit) core/src/test/java/org/apache/struts2/views/jsp/ui/DateTagTest.java
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build Struts-JDK7-master #545 (See https://builds.apache.org/job/Struts-JDK7-master/545/ ) WW-4705 - Add support for long type to <s:date> tag (amashchenko: rev 8fe2bb8317088f6a24aea3a03f19a9f257cbec09) (edit) core/src/main/java/org/apache/struts2/components/Date.java (edit) core/src/test/java/org/apache/struts2/views/jsp/ui/DateTagTest.java
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 8fe2bb8317088f6a24aea3a03f19a9f257cbec09 in struts's branch refs/heads/master from Aleksandr Mashchenko
        [ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=8fe2bb8 ]

        WW-4705 - Add support for long type to <s:date> tag

        Show
        jira-bot ASF subversion and git services added a comment - Commit 8fe2bb8317088f6a24aea3a03f19a9f257cbec09 in struts's branch refs/heads/master from Aleksandr Mashchenko [ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=8fe2bb8 ] WW-4705 - Add support for long type to <s:date> tag

          People

          • Assignee:
            aleksandr-m Aleksandr Mashchenko
            Reporter:
            aleksandr-m Aleksandr Mashchenko
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development