Alaska Cowboy
asked on
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)"
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"/> <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"/> <c:out value="${detail.numPaidDates}"/></a> <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"/> <c:out value="${detail.numPaidDates}"/></a></c:when>
<c:otherwise><fmt:formatDate value="${detail.reportedDate}" pattern="MMM dd - E"/></c:otherwise>
</c:choose>
</td>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ok, I changed to
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
now get this:
/WEB-INF/jsp/parameter_lis t.jsp(95,6 7) JSPG0060E: Invalid jsp syntax []
My code is:
<td><fmt:formatDate value="${ed.updateDate}" pattern="MMM dd - E"</td>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
now get this:
/WEB-INF/jsp/parameter_lis
My code is:
<td><fmt:formatDate value="${ed.updateDate}" pattern="MMM dd - E"</td>
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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 !
But good to go now !
ASKER
thank you.