|
Re: developing taglibs [message #200583 is a reply to message #200497] |
Wed, 26 September 2007 01:30 |
|
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 #200881 is a reply to message #200743] |
Mon, 01 October 2007 18:40 |
Eclipse User |
|
|
|
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 |
|
> "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 #201048 is a reply to message #201008] |
Tue, 02 October 2007 14:06 |
|
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 #201143 is a reply to message #201008] |
Wed, 03 October 2007 18:01 |
Larry Isaacs 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
>
|
|
|
Powered by
FUDForum. Page generated in 0.02433 seconds