Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Adding custom TLD
Adding custom TLD [message #156031] Wed, 11 January 2006 22: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] Wed, 11 January 2006 23:46 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Adding custom TLD [message #156069 is a reply to message #156047] Thu, 12 January 2006 04: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: Sun Mar 23 20:19:11 EDT 2025

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

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

Back to the top