Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Taglib Build Error Hell!(Build errors from taglibs)
Taglib Build Error Hell! [message #495958] Fri, 06 November 2009 19:09 Go to next message
Luke is currently offline LukeFriend
Messages: 14
Registered: July 2009
Junior Member
Probably a stupid question, but I have been staring at this for a couple of hours...

Google doesn't come up with any quick topics nor does a search of this forum, so my apologies if answered. I did a decent try for looking.

I have a multiple project workspace. One out of the 15 or so projects has a bunch of jsp in it. All of them reference taglibs that are in another workspace/project set.

How do I get rid of the build errors that get kicked out from the jsps because it pollutes the whole workspace. I have tried to add the approrpiate tlds to global and project resources (.tld files), but eclipse does not seem to handle them well.

Help!
Re: Taglib Build Error Hell! [message #496230 is a reply to message #495958] Mon, 09 November 2009 12:11 Go to previous messageGo to next message
Wolfgang Knauf is currently offline Wolfgang KnaufFriend
Messages: 63
Registered: July 2009
Member
Hi Luke,

the tag libs (tld files) should be contained somewhere in WEB-INF, either as
part of a JAR or as plain tld file.

If this is not possible, you might add references to external files in
"web.xml". Here is a sample for a JSTL tld:

<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/tags/c.tld</taglib-location>
</taglib>
</jsp-config>

For further help, you should provide more details about your project structure
and TLDs (and of course the eclipse error messages ;-) )

Hope this helps

Wolfgang
Re: Taglib Build Error Hell! [message #496987 is a reply to message #495958] Thu, 12 November 2009 06:07 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2335
Registered: July 2009
Senior Member
Luke wrote:
> Probably a stupid question, but I have been staring at this for a couple
> of hours...
>
> Google doesn't come up with any quick topics nor does a search of this
> forum, so my apologies if answered. I did a decent try for looking.
>
> I have a multiple project workspace. One out of the 15 or so projects
> has a bunch of jsp in it. All of them reference taglibs that are in
> another workspace/project set.
>
> How do I get rid of the build errors that get kicked out from the jsps
> because it pollutes the whole workspace. I have tried to add the
> approrpiate tlds to global and project resources (.tld files), but
> eclipse does not seem to handle them well.

Since resources outside of the current project can't be deployed as
files (only .jars in WEB-INF/lib as I understand it), it's safest to
refer to the tag libraries using their URIs. But like Wolfgang
said, we'd need more specifics to pinpoint why you're seeing problems.

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:Hyperlink to (Cross file) XML node
Next Topic:UnsupportedOperationException on WTP
Goto Forum:
  


Current Time: Wed Nov 26 17:57:35 GMT 2014

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

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