Class DateTimeTag

  • All Implemented Interfaces:
    javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

    public class DateTimeTag
    extends javax.servlet.jsp.tagext.SimpleTagSupport
    This class replaces the <fmt:formatDate /> tag. Why do we need a new tag? => fmt can't be configured via a System Property (without side effects) => we want to support the new java.time classes It will output datetimes as ISO_8601 type style unless otherwise defined in opennms.properties. See also: https://en.wikipedia.org/wiki/ISO_8601 and https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html
    • Constructor Detail

      • DateTimeTag

        public DateTimeTag()
    • Method Detail

      • doTag

        public void doTag()
                   throws IOException
        Specified by:
        doTag in interface javax.servlet.jsp.tagext.SimpleTag
        Overrides:
        doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
        Throws:
        IOException
      • setInstant

        public void setInstant​(java.time.Instant instant)