Package org.opennms.web.tags
Class DateTimeTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.SimpleTagSupport
-
- org.opennms.web.tags.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 Summary
Constructors Constructor Description DateTimeTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
doTag()
void
setDate(Date date)
Deprecated.void
setInstant(java.time.Instant instant)
-
-
-
Method Detail
-
doTag
public void doTag() throws IOException
- Specified by:
doTag
in interfacejavax.servlet.jsp.tagext.SimpleTag
- Overrides:
doTag
in classjavax.servlet.jsp.tagext.SimpleTagSupport
- Throws:
IOException
-
setInstant
public void setInstant(java.time.Instant instant)
-
setDate
@Deprecated public void setDate(Date date)
Deprecated.
-
-