Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » developing taglibs
developing taglibs [message #200497] Tue, 25 September 2007 10:01 Go to next message
Zohar Amir is currently offline Zohar AmirFriend
Messages: 419
Registered: July 2009
Senior Member
Hi,
I'm wrote some taglibs and want to use them in a dynamic web project I have.
What is the right way to do that? I can tell my web project that it depends
on the taglibs project, but how do I make it recognize the tld?
Re: developing taglibs [message #200583 is a reply to message #200497] Wed, 26 September 2007 01:30 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

zohar wrote:
> Hi,
> I'm wrote some taglibs and want to use them in a dynamic web project I
> have. What is the right way to do that? I can tell my web project that
> it depends on the taglibs project, but how do I make it recognize the tld?

It should be automatic as long as you're using 1.5.5 or a release
candidate for 2.0.1.

--
Nitin Dahyabhai
Structured Source Editing


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: developing taglibs [message #200743 is a reply to message #200583] Sun, 30 September 2007 07:07 Go to previous messageGo to next message
Zohar Amir is currently offline Zohar AmirFriend
Messages: 419
Registered: July 2009
Senior Member
Automatic how? Where do I put the TLDs?
BTW: any tutorial about this?
Thanks,
Zohar.

"Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
news:fdccql$9mv$1@build.eclipse.org...
> zohar wrote:
>> Hi,
>> I'm wrote some taglibs and want to use them in a dynamic web project I
>> have. What is the right way to do that? I can tell my web project that it
>> depends on the taglibs project, but how do I make it recognize the tld?
>
> It should be automatic as long as you're using 1.5.5 or a release
> candidate for 2.0.1.
>
> --
> Nitin Dahyabhai
> Structured Source Editing
Re: developing taglibs [message #200881 is a reply to message #200743] Mon, 01 October 2007 18:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: adam.hardy.no.spam.cyberspaceroad.spam

There's a Sun tutorial for JEE 5 on java.sun.com.

Eclipse (and all 2.4 servlet containers) will search your jar for TLDs and make
them available to JSPs in the JSP editor as recognised tags and for smart code
completion.

Put the .tld file in the taglib jar in the root of the src directory. It may
also be possible or even recommended to put it in META-INF dir - maybe someone
else can comment, or you can check the servlet spec from Sun.


HTH
Adam

zohar on 30/09/07 08:07, wrote:
> Automatic how? Where do I put the TLDs?
> BTW: any tutorial about this?
> Thanks,
> Zohar.
>
> "Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
> news:fdccql$9mv$1@build.eclipse.org...
>> zohar wrote:
>>> Hi,
>>> I'm wrote some taglibs and want to use them in a dynamic web project
>>> I have. What is the right way to do that? I can tell my web project
>>> that it depends on the taglibs project, but how do I make it
>>> recognize the tld?
>>
>> It should be automatic as long as you're using 1.5.5 or a release
>> candidate for 2.0.1.
>>
>> --
>> Nitin Dahyabhai
>> Structured Source Editing
>
Re: developing taglibs [message #200935 is a reply to message #200743] Tue, 02 October 2007 01:06 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

> "Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
> news:fdccql$9mv$1@build.eclipse.org...
>> zohar wrote:
>>> Hi,
>>> I'm wrote some taglibs and want to use them in a dynamic web project
>>> I have. What is the right way to do that? I can tell my web project
>>> that it depends on the taglibs project, but how do I make it
>>> recognize the tld?
>>
>> It should be automatic as long as you're using 1.5.5 or a release
>> candidate for 2.0.1.
zohar wrote:
> Automatic how? Where do I put the TLDs?
> BTW: any tutorial about this?

The simplest thing to do is to set a URI value within the TLD and
reference that within the JSP file using a taglib directive. But
like I said it's best to use either 1.5.5 or 2.0.1 for this.

--
Nitin Dahyabhai
Structured Source Editing


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: developing taglibs [message #201008 is a reply to message #200935] Tue, 02 October 2007 11:40 Go to previous messageGo to next message
Zohar Amir is currently offline Zohar AmirFriend
Messages: 419
Registered: July 2009
Senior Member
I think I'm missing something here, so let me explain what I need again:

I have dynamic web project. I want to use some taglibs in that project. What
the dynamic web project needs is:
1. The taglib classes (jared or unjared)
2. The TLDs for the taglibs

Both are found in a different, java, project.

What I did is add the taglibs (java) project to the dynamic web project's
'J2EE Module Dependencies'. This imports the taglib clases into the dynamic
web projects, but not the TLDs. I can see this when I export the project to
a WAR file and look into it - the TLDs are not in the WEB-INF directory.

Now my question again:

Where should I place the TLDs in the taglibs project, so that they are
"exported" to the dynamic web project (and put in the WEB-INF dir)?

"Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
news:fds5l8$42t$1@build.eclipse.org...
>> "Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
>> news:fdccql$9mv$1@build.eclipse.org...
>>> zohar wrote:
>>>> Hi,
>>>> I'm wrote some taglibs and want to use them in a dynamic web project I
>>>> have. What is the right way to do that? I can tell my web project that
>>>> it depends on the taglibs project, but how do I make it recognize the
>>>> tld?
>>>
>>> It should be automatic as long as you're using 1.5.5 or a release
>>> candidate for 2.0.1.
> zohar wrote:
> > Automatic how? Where do I put the TLDs?
> > BTW: any tutorial about this?
>
> The simplest thing to do is to set a URI value within the TLD and
> reference that within the JSP file using a taglib directive. But like I
> said it's best to use either 1.5.5 or 2.0.1 for this.
>
> --
> Nitin Dahyabhai
> Structured Source Editing
Re: developing taglibs [message #201048 is a reply to message #201008] Tue, 02 October 2007 14:06 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

zohar wrote:
> I think I'm missing something here, so let me explain what I need again:
>
> I have dynamic web project. I want to use some taglibs in that project.
> What the dynamic web project needs is:
> 1. The taglib classes (jared or unjared)
> 2. The TLDs for the taglibs
>
> Both are found in a different, java, project.
>
> What I did is add the taglibs (java) project to the dynamic web
> project's 'J2EE Module Dependencies'. This imports the taglib clases
> into the dynamic web projects, but not the TLDs. I can see this when I
> export the project to a WAR file and look into it - the TLDs are not in
> the WEB-INF directory.
>
> Now my question again:
>
> Where should I place the TLDs in the taglibs project, so that they are
> "exported" to the dynamic web project (and put in the WEB-INF dir)?

That's more of a problem with J2EE deployment, unfortunately. All I
can say is that the editor won't care where it is in the other
project if you're using 1.5.5 or 2.0.1.

--
Nitin Dahyabhai
Structured Source Editing


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: developing taglibs [message #201084 is a reply to message #201048] Wed, 03 October 2007 06:28 Go to previous messageGo to next message
Zohar Amir is currently offline Zohar AmirFriend
Messages: 419
Registered: July 2009
Senior Member
You mean that when I export the dynamic web project to a WAR file it will
not include the TLDs? If so - should I open a bugzilla issue for that?

"Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
news:fdtjcg$q98$1@build.eclipse.org...
> zohar wrote:
>> I think I'm missing something here, so let me explain what I need again:
>>
>> I have dynamic web project. I want to use some taglibs in that project.
>> What the dynamic web project needs is:
>> 1. The taglib classes (jared or unjared)
>> 2. The TLDs for the taglibs
>>
>> Both are found in a different, java, project.
>>
>> What I did is add the taglibs (java) project to the dynamic web project's
>> 'J2EE Module Dependencies'. This imports the taglib clases into the
>> dynamic web projects, but not the TLDs. I can see this when I export the
>> project to a WAR file and look into it - the TLDs are not in the WEB-INF
>> directory.
>>
>> Now my question again:
>>
>> Where should I place the TLDs in the taglibs project, so that they are
>> "exported" to the dynamic web project (and put in the WEB-INF dir)?
>
> That's more of a problem with J2EE deployment, unfortunately. All I can
> say is that the editor won't care where it is in the other project if
> you're using 1.5.5 or 2.0.1.
>
> --
> Nitin Dahyabhai
> Structured Source Editing
Re: developing taglibs [message #201143 is a reply to message #201008] Wed, 03 October 2007 18:01 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
I believe if you want the TLD file to be in the WEB-INF directory, you
will have to put it directly in the WebContent/WEB-INF directory of your
dynamic web project. I'm not aware of a way to get it there from the
utility project. You do have the option of packaging the TLD in the
utility jar deployed in the webapp from the utility project. The TLD
would need to go in the META-INF directory of that jar, or a
subdirectory of META-INF. You can create a META-INF directory, and any
subdirectories, under the root of the Java source directory of your
utility project and put the TLD in there.

Cheers,
Larry

zohar wrote:
> I think I'm missing something here, so let me explain what I need again:
>
> I have dynamic web project. I want to use some taglibs in that project.
> What the dynamic web project needs is:
> 1. The taglib classes (jared or unjared)
> 2. The TLDs for the taglibs
>
> Both are found in a different, java, project.
>
> What I did is add the taglibs (java) project to the dynamic web
> project's 'J2EE Module Dependencies'. This imports the taglib clases
> into the dynamic web projects, but not the TLDs. I can see this when I
> export the project to a WAR file and look into it - the TLDs are not in
> the WEB-INF directory.
>
> Now my question again:
>
> Where should I place the TLDs in the taglibs project, so that they are
> "exported" to the dynamic web project (and put in the WEB-INF dir)?
>
> "Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
> news:fds5l8$42t$1@build.eclipse.org...
>>> "Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
>>> news:fdccql$9mv$1@build.eclipse.org...
>>>> zohar wrote:
>>>>> Hi,
>>>>> I'm wrote some taglibs and want to use them in a dynamic web
>>>>> project I have. What is the right way to do that? I can tell my web
>>>>> project that it depends on the taglibs project, but how do I make
>>>>> it recognize the tld?
>>>>
>>>> It should be automatic as long as you're using 1.5.5 or a release
>>>> candidate for 2.0.1.
>> zohar wrote:
>> > Automatic how? Where do I put the TLDs?
>> > BTW: any tutorial about this?
>>
>> The simplest thing to do is to set a URI value within the TLD and
>> reference that within the JSP file using a taglib directive. But like
>> I said it's best to use either 1.5.5 or 2.0.1 for this.
>>
>> --
>> Nitin Dahyabhai
>> Structured Source Editing
>
Previous Topic:InvokerServlet cannot be loaded in Tomcat 6.0.14 in Eclipse SDK 3.3.0
Next Topic:Run on Server for Servlet
Goto Forum:
  


Current Time: Thu Apr 18 07:33:24 GMT 2024

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

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

Back to the top