Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Adding custom TLD
Adding custom TLD [message #156031] Thu, 12 January 2006 03:47 Go to next message
Eclipse UserFriend
Originally posted by: wul99.yahoo.com

I have a custom tag library customeTLD.tld in customTLD.jar. This jar file
is copied to WEB-INF/lib. how can i enable the tld so that code completion
in JSP editor can support the tld?


Thanks


William
Re: Adding custom TLD [message #156047 is a reply to message #156031] Thu, 12 January 2006 04:46 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

William wrote:
> I have a custom tag library customeTLD.tld in customTLD.jar. This jar
> file is copied to WEB-INF/lib. how can i enable the tld so that code
> completion in JSP editor can support the tld?

If customeTLD.tld has a URI defined within it using the "uri" tags
introduced in JSP 1.2, just declare your usage of the library with a
taglib directive and use that same uri in your JSP file. It
shouldn't be any more complicated than it would be just running it
on the server.

--
- Nitin


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Adding custom TLD [message #156069 is a reply to message #156047] Thu, 12 January 2006 09:19 Go to previous message
Eclipse UserFriend
Originally posted by: wknauf_NO_._INSIDE_hg-online.de

I had to extract the tld from the jar file and place it directly in WEB-INF (or
a subdir) and point to this location in web.xml so that the wtp plugin could
reference it. But this is 0.7 knowledge and happened with the apache
implementation of the JSTL 1.1, maybe it has changed already.

Best regards

Wolfgang


Nitin Dahyabhai wrote:
> William wrote:
>> I have a custom tag library customeTLD.tld in customTLD.jar. This jar
>> file is copied to WEB-INF/lib. how can i enable the tld so that code
>> completion in JSP editor can support the tld?
>
> If customeTLD.tld has a URI defined within it using the "uri" tags
> introduced in JSP 1.2, just declare your usage of the library with a
> taglib directive and use that same uri in your JSP file. It shouldn't
> be any more complicated than it would be just running it on the server.
>
Previous Topic:could supply a tool to convent a project to J2EE prpject
Next Topic:How to change the context?
Goto Forum:
  


Current Time: Thu Apr 25 01:15:04 GMT 2024

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

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

Back to the top