cannot resolve tag library

I know this has properly been asked before, bu I can't find anything by
searching the newsgroups.

How do I tell IDEA to find my taglib?

I'm trying to use webwork. So I made a folder
"/lib/webwork/WEB-INF". I copied webwork.jar (with the tags inside) to "/lib/webwork" and put this web.xml in "/lib/webwork/WEB-INF". webwork webwork/webwork.jar ]]>

Why, oh, why does it not work?

- jake


6 comments
Comment actions Permalink

Ah, I solved it.

Turns out I had to make this structure:

]]>
+- src
+- jsp
| +- WEB-INF
| | +- lib
| | | +- webwork.jar
| +- web.xml
| +- taglib.tld
+- tryingwebwork.jsp

Is this to be the standard? I would like the possibility to use both my
own tags and a library.

- jake

0
Comment actions Permalink

Are there any other ways to do this, without having to use a standard
web-application file structure? I see in the changes in build 611 from 609
the following:

JSP Support. Using external resource configuration for resolving TLD
files

I tried adding my TLDs to the external resources in the IDE settings, but
that didn't do it. Any pointers?

I ask because I have TLDs that are deployed into a non-standard structure,
and we're not using a WEB-INF or web.xml to handle them - but I would like
to have the tags resolved in the JSP editor.




"Jacob Bay Hansen" <jacob.bay.hansen@rain.dk> wrote in message
news:3D2CB822.6010904@rain.dk...

Ah, I solved it.

>

Turns out I had to make this structure:

>

<project>
+- src
+- jsp
| +- WEB-INF
| | +- lib
| | | +- webwork.jar
| +- web.xml
| +- taglib.tld
+- tryingwebwork.jsp

>

Is this to be the standard? I would like the possibility to use both my
own tags and a library.

>

- jake

>


0
Comment actions Permalink

How will your servlet container find the tag libraries if they are not in
web.xml?

"d. daniell" wrote:

Are there any other ways to do this, without having to use a standard
web-application file structure? I see in the changes in build 611 from 609
the following:

>

JSP Support. Using external resource configuration for resolving TLD
files

>

I tried adding my TLDs to the external resources in the IDE settings, but
that didn't do it. Any pointers?

>

I ask because I have TLDs that are deployed into a non-standard structure,
and we're not using a WEB-INF or web.xml to handle them - but I would like
to have the tags resolved in the JSP editor.

>

"Jacob Bay Hansen" <jacob.bay.hansen@rain.dk> wrote in message
news:3D2CB822.6010904@rain.dk...

Ah, I solved it.

>

Turns out I had to make this structure:

>

<project>
+- src
+- jsp
| +- WEB-INF
| | +- lib
| | | +- webwork.jar
| +- web.xml
| +- taglib.tld
+- tryingwebwork.jsp

>

Is this to be the standard? I would like the possibility to use both my
own tags and a library.

>

- jake

>


0
Comment actions Permalink

Yes I use this like you said with all the tld's as External Resources. The
trick is you still need to configure a webapp in IDEA. So in your project
properties under the web option enable webapp support then add a directory
that has WEB-INF as a subdir. Then you can uncheck enable webapp and save
it. Then restart IDEA. Your tlds should now resolve. This seems like a
bug to me (and I've reported it since #629). Since IDEA obviously can
resolve tlds from the Ext Resources but needs a little help getting there by
setting up a dummy webapp.

-kevin


"d. daniell" <david.daniell-NOSPAM@NOSPAM-bluefly.com> wrote in message
news:agiea1$qpf$1@is.intellij.net...

Are there any other ways to do this, without having to use a standard
web-application file structure? I see in the changes in build 611 from

609

the following:

>

JSP Support. Using external resource configuration for resolving TLD
files

>

I tried adding my TLDs to the external resources in the IDE settings, but
that didn't do it. Any pointers?

>

I ask because I have TLDs that are deployed into a non-standard structure,
and we're not using a WEB-INF or web.xml to handle them - but I would like
to have the tags resolved in the JSP editor.

>
>
>
>

"Jacob Bay Hansen" <jacob.bay.hansen@rain.dk> wrote in message
news:3D2CB822.6010904@rain.dk...

Ah, I solved it.

>

Turns out I had to make this structure:

>

<project>
+- src
+- jsp
| +- WEB-INF
| | +- lib
| | | +- webwork.jar
| +- web.xml
| +- taglib.tld
+- tryingwebwork.jsp

>

Is this to be the standard? I would like the possibility to use both my
own tags and a library.

>

- jake

>

>
>


0
Comment actions Permalink

i'm build on top of a non-standard web application which does a custom
mapping for locating TLDs...


"Christopher Cobb" <ccobb@phtek.com> wrote in message
news:3D2CBEC0.75D0E947@phtek.com...

How will your servlet container find the tag libraries if they are not in
web.xml?

>

"d. daniell" wrote:

>

Are there any other ways to do this, without having to use a standard
web-application file structure? I see in the changes in build 611 from

609

the following:

>

JSP Support. Using external resource configuration for resolving TLD
files

>

I tried adding my TLDs to the external resources in the IDE settings,

but

that didn't do it. Any pointers?

>

I ask because I have TLDs that are deployed into a non-standard

structure,

and we're not using a WEB-INF or web.xml to handle them - but I would

like

to have the tags resolved in the JSP editor.

>

"Jacob Bay Hansen" <jacob.bay.hansen@rain.dk> wrote in message
news:3D2CB822.6010904@rain.dk...

Ah, I solved it.

>

Turns out I had to make this structure:

>

<project>
+- src
+- jsp
| +- WEB-INF
| | +- lib
| | | +- webwork.jar
| +- web.xml
| +- taglib.tld
+- tryingwebwork.jsp

>

Is this to be the standard? I would like the possibility to use both

my

own tags and a library.

>

- jake

>

>


0
Comment actions Permalink

Alright, this works... but only if your JSPs sit in the same project path
which contains the (empty) WEB-INF directory, and that project path is set
as the fake webapp in the project properties. Other JSPs in the project
which happen to be located in other paths, not a part of this webapp, don't
resolve TLDs. But this is good enough for now...

Thanks much.

- dwd



"Kevin Henrikson" <kevin.henrikson@openwave.com> wrote in message
news:aginr3$vm6$1@is.intellij.net...

Yes I use this like you said with all the tld's as External Resources.

The

trick is you still need to configure a webapp in IDEA. So in your project
properties under the web option enable webapp support then add a directory
that has WEB-INF as a subdir. Then you can uncheck enable webapp and save
it. Then restart IDEA. Your tlds should now resolve. This seems like a
bug to me (and I've reported it since #629). Since IDEA obviously can
resolve tlds from the Ext Resources but needs a little help getting there

by

setting up a dummy webapp.

>

-kevin

>
>

"d. daniell" <david.daniell-NOSPAM@NOSPAM-bluefly.com> wrote in message
news:agiea1$qpf$1@is.intellij.net...

Are there any other ways to do this, without having to use a standard
web-application file structure? I see in the changes in build 611 from

609

the following:

>

JSP Support. Using external resource configuration for resolving TLD
files

>

I tried adding my TLDs to the external resources in the IDE settings,

but

that didn't do it. Any pointers?

>

I ask because I have TLDs that are deployed into a non-standard

structure,

and we're not using a WEB-INF or web.xml to handle them - but I would

like

to have the tags resolved in the JSP editor.

>
>
>
>

"Jacob Bay Hansen" <jacob.bay.hansen@rain.dk> wrote in message
news:3D2CB822.6010904@rain.dk...

Ah, I solved it.

>

Turns out I had to make this structure:

>

<project>
+- src
+- jsp
| +- WEB-INF
| | +- lib
| | | +- webwork.jar
| +- web.xml
| +- taglib.tld
+- tryingwebwork.jsp

>

Is this to be the standard? I would like the possibility to use both

my

own tags and a library.

>

- jake

>

>
>

>
>


0

Please sign in to leave a comment.