synyx GmbH & Co. KG Homepage Welcome Guest   | Login
  Search  
  Index  | Recent Threads  | Who's Online  | User List  | Register  | Search  | Help  | RSS feeds


Quick Go »
Thread Status: Normal
Total posts in this thread: 2
[Add To My Favorites] [Watch this Thread]
Author
Previous Thread This topic has been viewed 1866 times and has 1 reply Next Thread
Female marta
Stranger



Joined: May 28, 2007
Posts: 6
Status: Offline

fmt taglib

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!
[Jun 11, 2007 3:30:14 PM] Show Printable Version of Post        Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Female marta
Stranger



Joined: May 28, 2007
Posts: 6
Status: Offline

Re: fmt taglib

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"%>
[Jun 12, 2007 6:36:03 AM] Show Printable Version of Post        Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
[Show Printable Version of Thread]