Skip to main content



      Home
Home » Newcomers » Newcomers » Getting 'taglib directive for "f" does not exist or TLD is not found'
Getting 'taglib directive for "f" does not exist or TLD is not found' [message #260532] Wed, 09 July 2008 11:56 Go to next message
Eclipse UserFriend
Hi,

I'm using Eclipse 3.4 and when I open my JSF page in Eclipse, I'm getting
red "x"'s next to my JSF directives. For example,

<f:view>

has a red "x" along the left margin and when I roll over it, it gives me
the error, 'taglib directive for "f" does not exist or TLD is not found.'
This is odd because I have the appropriate directives, including

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

at the top of my page. Strangely, the "<%@" portion appears in red. Does
anyone know how I can get Eclipse to recognize the listed directives?

Thanks, - Dave
Re: Getting 'taglib directive for "f" does not exist or TLD is not found' [message #260561 is a reply to message #260532] Wed, 09 July 2008 14:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cmattmiller.gmail.com

I had the same problem a couple of times. I just rewrote the line and it
was fine. But to be sure, do you have jstl.jar in the build path?
Re: Getting 'taglib directive for "f" does not exist or TLD is not found' [message #260646 is a reply to message #260561] Thu, 10 July 2008 10:23 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for your reply. When I right click on my project, select
"Properties", click the "Libraries" tab, jstl-1.1.0.jar - (directory it is
in) appears. But beneath it read

Source Attachment: (none)
Javadoc location: (None)
Native Library Location: (None)
Access rules: (No restrictions)

Not sure if these are problematic or not. When you mentioned you rewrote
the '<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>' line,
how did you rewrite it?

Thanks again, - Dave
Re: Getting 'taglib directive for "f" does not exist or TLD is not found' [message #260649 is a reply to message #260646] Thu, 10 July 2008 10:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cmattmiller.gmail.com

Dave Alvarado wrote:

> Thanks for your reply. When I right click on my project, select
> "Properties", click the "Libraries" tab, jstl-1.1.0.jar - (directory it is
> in) appears. But beneath it read

> Source Attachment: (none)
> Javadoc location: (None)
> Native Library Location: (None)
> Access rules: (No restrictions)

K, I just looked and I also have it in a WEB-INF/lib folder.


> Not sure if these are problematic or not. When you mentioned you rewrote
> the '<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>' line,
> how did you rewrite it?

I just retyped it on the next line.

> Thanks again, - Dave
Re: Getting 'taglib directive for "f" does not exist or TLD is not found' [message #261209 is a reply to message #260646] Wed, 16 July 2008 01:03 Go to previous messageGo to next message
Eclipse UserFriend
Dave Alvarado wrote:
> Thanks for your reply. When I right click on my project, select
> "Properties", click the "Libraries" tab, jstl-1.1.0.jar - (directory it
> is in) appears. But beneath it read
>
> Source Attachment: (none)
> Javadoc location: (None)
> Native Library Location: (None)
> Access rules: (No restrictions)
>
> Not sure if these are problematic or not. When you mentioned you
> rewrote the '<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"
> %>' line, how did you rewrite it?

JSTL and JSF aren't provided by the same jars, are they?

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational
Re: Getting 'taglib directive for "f" does not exist or TLD is not found' [message #261248 is a reply to message #261209] Wed, 16 July 2008 09:58 Go to previous message
Eclipse UserFriend
Originally posted by: cmattmiller.gmail.com

Nitin Dahyabhai wrote:

> Dave Alvarado wrote:
>> Thanks for your reply. When I right click on my project, select
>> "Properties", click the "Libraries" tab, jstl-1.1.0.jar - (directory it
>> is in) appears. But beneath it read
>>
>> Source Attachment: (none)
>> Javadoc location: (None)
>> Native Library Location: (None)
>> Access rules: (No restrictions)
>>
>> Not sure if these are problematic or not. When you mentioned you
>> rewrote the '<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"
>> %>' line, how did you rewrite it?

> JSTL and JSF aren't provided by the same jars, are they?

No they aren't...my bad. There is a separate jsf-api.jar
Previous Topic:WS02 and Eclipse WTP
Next Topic:EPP & UDC
Goto Forum:
  


Current Time: Mon Jul 14 22:45:39 EDT 2025

Powered by FUDForum. Page generated in 0.09870 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top