Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Getting tag files from a TLDDocument
Getting tag files from a TLDDocument [message #219485] Wed, 20 August 2008 17:57 Go to next message
Eclipse UserFriend
JSP 2.1 spec section JSP.8.4.2 states:

"JSP 2.0 adds an additional TLD element to describe tags within a tag
library,
namely <tag-file>. The <tag-file> element requires <name> and <path>
subelements ... "

Is there a way to access this information from the TLD API? I thought
TLDDocument would be the interface that would have it, but there is
nothing apparent.


--Cam
Re: Getting tag files from a TLDDocument [message #219502 is a reply to message #219485] Wed, 20 August 2008 22:00 Go to previous messageGo to next message
Eclipse UserFriend
Cameron Bateman wrote:
> JSP 2.1 spec section JSP.8.4.2 states:
>
> "JSP 2.0 adds an additional TLD element to describe tags within a tag
> library,
> namely <tag-file>. The <tag-file> element requires <name> and <path>
> subelements ... "
>
> Is there a way to access this information from the TLD API? I thought
> TLDDocument would be the interface that would have it, but there is
> nothing apparent.

org.eclipse.jst.jsp.core.internal.contentmodel.tld.provision al.TLDElementDeclaration.getPath()
should contain it as it's specific to the tag.

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational
Re: Getting tag files from a TLDDocument [message #219628 is a reply to message #219502] Mon, 25 August 2008 17:38 Go to previous messageGo to next message
Eclipse UserFriend
Nitin Dahyabhai wrote:

> Cameron Bateman wrote:
>> Is there a way to access this information from the TLD API? I thought
>> TLDDocument would be the interface that would have it, but there is
>> nothing apparent.

> org.eclipse.jst.jsp.core.internal.contentmodel.tld.provision al.TLDElementDecl
> aration.getPath()
> should contain it as it's specific to the tag.

So the concept of tag and tag-file have been merged for these purposes?
i.e. the tag-file is loaded into a TLDDocument's metadata as though it
were defined in the TLD as opposed to the referenced tag file? Is there
any way to be certain of this i.e. is the path only non-null if it's a
tag-file as opposed to a tag?


Thanks,

Cameron
Re: Getting tag files from a TLDDocument [message #219644 is a reply to message #219628] Mon, 25 August 2008 20:59 Go to previous messageGo to next message
Eclipse UserFriend
Cameron Bateman wrote:
> Nitin Dahyabhai wrote:
> So the concept of tag and tag-file have been merged for these purposes?
> i.e. the tag-file is loaded into a TLDDocument's metadata as though it
> were defined in the TLD as opposed to the referenced tag file? Is there
> any way to be certain of this i.e. is the path only non-null if it's a
> tag-file as opposed to a tag?

It's more along the lines of allowing users of the
TLDElementDeclaration to not have to care whether it came from a tag
file or not. And yes, it will only return a path value when the tag
wasn't solely defined by the .tld, or if there was no .tld file at
all (tagdirs).

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational
Re: Getting tag files from a TLDDocument [message #219680 is a reply to message #219644] Tue, 26 August 2008 13:08 Go to previous message
Eclipse UserFriend
> And yes, it will only return a path value when the tag
> wasn't solely defined by the .tld, or if there was no .tld file at
> all (tagdirs).

Makes sense. Thanks Nitin.
Previous Topic:dynamic-attributes on TLDElementDeclaration
Next Topic:Publish does not include xml files in war/ejb-jar
Goto Forum:
  


Current Time: Sat Jul 05 01:12:46 EDT 2025

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

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

Back to the top