?
Solved

formatDate taglib error

Posted on 2009-12-21
2
Medium Priority
?
983 Views
Last Modified: 2013-11-24
I'm getting an error:

"According to TLD, tag fmt:formatDate must be empty, but is not"

on this code:

<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
...
<c-rt:set var="now" value="<%=new java.util.Date()%>" />
...
<fmt:formatDate value="${now}" type="date" dateStyle="long" timeStyle="long" scope="page" var="thisDate" >

Any ideas why?
0
Comment
Question by:softechnics
2 Comments
 
LVL 9

Accepted Solution

by:
ioanton earned 2000 total points
ID: 26096999
Try this:

<fmt:formatDate value="${now}" type="date" dateStyle="long" timeStyle="long" scope="page" var="thisDate" />
0
 

Author Closing Comment

by:softechnics
ID: 31668563
I KNEW it was going to be something STUPID! (I HATE Mondays!)

Thanks!
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question