|
|
Index
| Recent Threads
| Who's Online
| User List
| Register
| Search
| Help
| |
![]() |
OpenCms Forum » List all forums » Forum: Questions about Programming » Thread: fmt taglib |
|
Thread Status: Normal Total posts in this thread: 2 |
[Add To My Favorites] [Watch this Thread] |
| Author |
|
|
Stranger
|
Hi, I've got a problem with fmt taglib... I get the next error: According to TLD or attribute directive in tag file, attribute key does not accept any expresions. The error is shown when I try to use the tag with a jsp expression, like this: <fmt:message key="<%=ne.getNavText()%>"/> If I use it withour a jsp expression, for example, <fmt:message key="key"/>, it works. I've seen it, so I know it can work with jsp expressions. I've read that it can be because of the versions it uses... I'm using tomcat 5.5.16, java 1.5.0_06, and OpenCms 6.2.0. I've tried using 2 tld: fmt-1_1_0-rt.tld and fmt-1_1_0.tld. I've also tried <%@taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"%> or <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> Don't know what else I can do. Does anyone know something about this? Thank you! |
||
|
|
Stranger
|
I was doing something wrong... It's easy. If someone has this problem, just have to download fmt-1_1_0-rt.tld and place it under WEB-INF folder. Then, at the begining of the jsp, put this uri instead of http://java.sun.com/jstl/fmt. <%@taglib prefix="fmt" uri="/WEB-INF/fmt-1_1_0-rt.tld"%> |
||
|
| [Show Printable Version of Thread] |