Custom tag attribute value cannot be runtime expression. value: "[${ed.updateDate}]"

When using this syntax, "<td><fmt:formatDate value="${ed.updateDate}" pattern="MMM"/></td>"
I get this error: Custom tag attribute value cannot be runtime expression. value: "[${ed.updateDate}]"

I have the proper libraries:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

and I just copied the syntax from another screen, see code snippet

Notes:
1. This works fine: {ed.updateDate}, displays       2011-06-06
2. My IDE says "Invalid attribute (value)"
/********** This works ************/

<td>
	<c:choose>
		<c:when test="${(detail.subjArea eq 'CLI' || detail.subjArea eq 'MEM' || detail.subjArea eq 'IDM') && detail.offsetDays ne 0}"><fmt:formatDate value="${detail.reportedDate}" pattern="MMM dd - E"/>&nbsp;&nbsp;<img src="images/<c:out value="${offsetIcon}" />" height="16" width="14" alt="" title="Change Date may not be correct !"/></c:when>
		<c:when test="${(detail.subjArea eq 'CLM' || detail.subjArea eq 'PCLM') && detail.offsetDays ne 0}"><a class='thickbox' href="<c:out value="${paidDateURL}" escapeXml="true"/>"><fmt:formatDate value="${detail.reportedDate}" pattern="MMM dd - E"/>&nbsp;<c:out value="${detail.numPaidDates}"/></a>&nbsp;&nbsp;<img src="images/<c:out value="${offsetIcon}" />" height="16" width="14" alt="" title="Paid Date may not be correct !"/></c:when>
		<c:when test="${(detail.subjArea eq 'CLM' || detail.subjArea eq 'PCLM') && detail.offsetDays eq 0}"><a class='thickbox' href="<c:out value="${paidDateURL}" escapeXml="true"/>"><fmt:formatDate value="${detail.reportedDate}" pattern="MMM dd - E"/>&nbsp;<c:out value="${detail.numPaidDates}"/></a></c:when>
		<c:otherwise><fmt:formatDate value="${detail.reportedDate}" pattern="MMM dd - E"/></c:otherwise>		
	</c:choose>
</td>

Open in new window

LVL 1
Alaska CowboyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rrzCommented:
You could try replacing
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
with
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Alaska CowboyAuthor Commented:
ok. I will try that Monday. but its odd that the <fmt> works in other screens.

thank you.
Alaska CowboyAuthor Commented:
Ok, I changed to
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

now get this:
/WEB-INF/jsp/parameter_list.jsp(95,67) JSPG0060E: Invalid jsp syntax []

My code is:
<td><fmt:formatDate value="${ed.updateDate}" pattern="MMM dd - E"</td>
rrzCommented:
><td><fmt:formatDate value="${ed.updateDate}" pattern="MMM dd - E"</td>  
You didn't close the fmt tag. Try
<td><fmt:formatDate value="${ed.updateDate}" pattern="MMM dd - E" /></td>
Alaska CowboyAuthor Commented:
bingo, thanks a lot, sorry for the debugging, I had it right in my original post, maybe all it needed was a space.

But good to go now !
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JSP

From novice to tech pro — start learning today.