Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Getting tag files from a TLDDocument
Getting tag files from a TLDDocument [message #219485] Wed, 20 August 2008 21:57 Go to next message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
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] Thu, 21 August 2008 02:00 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

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


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Getting tag files from a TLDDocument [message #219628 is a reply to message #219502] Mon, 25 August 2008 21:38 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
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] Tue, 26 August 2008 00:59 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

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


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Getting tag files from a TLDDocument [message #219680 is a reply to message #219644] Tue, 26 August 2008 17:08 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
> 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: Thu Apr 25 09:51:05 GMT 2024

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

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

Back to the top