D
D
denispalchuk2014-11-30 02:06:03
Java
denispalchuk, 2014-11-30 02:06:03

Trouble adding Joda to JSP?

Hello. Wanted to format LocalDateTime in JSP page. For this added

<%@taglib prefix="joda" uri="http://www.joda.org/joda/time/tags"%>.

However, when I go to this page, it says:
The absolute uri: www.joda.org/joda/time/tags cannot be resolved in either web.xml or the jar files deployed with this application

in dependencies (pom.xml) version of servlets and joda:
<dependency>
   <groupId>joda-time</groupId>  
   <artifactId>joda-time</artifactId>
   <version>2.5</version>
</dependency>
<dependency>
   <groupId>javax.servlet</groupId>
   <artifactId>jstl</artifactId>
   <version>1.2</version>
</dependency>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Power, 2014-11-30
@Power

You need to include the joda-time-jsptags dependency.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question