Joda-Time provides a complete quality alternative to the JDK date and time classes. However, this causes issues when working with other libraries that expect a JDK object, such as the JSTL JSP tag library.
To solve this problem, the Joda-Time JSP tags contributed project provides a JSTL-like set of tags that format and parse Joda-Time based date and time objects instead of JDK based objects.
As a flavour of the tags, here's how to format a Joda-Time object in JSP:
<%@taglib prefix="joda" uri="http://www.joda.org/joda/time/tags" %>
<% pageContext.setAttribute("now", new org.joda.time.DateTime()); %>
<joda:format value="${now}" style="SM" />
Various documentation is available:
Release 1.0.2 is the current latest release. This release is a very minor patch to 1.0, fixing maven issues.
The dependencies are Joda-Time 1.0 or later, the Servlet 2.4 API, the JSP 2.0 API, and JSTL 1.1 API. JDK 1.4 or later is required, and there is no testing on earlier JDKs.
The Joda-Time JSP tags library was contributed to Joda-Time by Jim Newsham. It is based on the code at Jakarta Taglibs.
For support on bugs, using the library or to volunteer please contact the mailing list. Due to spam, you must be subscribed to post to the mailing list.