TLD TestCases

Hello,

You'll find the original TLD test cases we use in Ariadna attached. Hope
this will help resolve most of the tld issues. If you think that some
important case is not covered by our test cases please let us know.

This testcases doesn't have ipr files. In order to open it in IDEA you
should create project, with project root equal to some test case path (e.g.
tld/, tei/test1, tei/test2, etc.) and create a web app with the same root.
In tei/test3 you should also add lib/test.jar to your classpath and in
tei/test4 you should add classes folder to classpath.

--
Best regards,
Mike Aizatsky.
-


JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"






0

Observing test cases i noticed that one is missed. It is concerning to comuting TLD location.
Due to the Servlet spec there are two cases:

1.If the <taglib-location> subelement is some relative URI specification that
starts with a "/" the TAGLIB_LOCATION is this URI.

2. If the <taglib-location> subelement is some relative URI specification that does
not start with "/", the TAGLIB_LOCATION is the resolution of the URI relative to
/WEB-INF/web.xml (the result of this resolution is a relative URI specification
that starts with "/").

First case is checked in the /tld application the second does not.
After my test i can conclude that Ariadna process properly both cases,
but nevertheless I would recommend you to add it.

--
Vlad Kamensky,
@Business SPb.


"Mike Aizatsky" <mike@intellij.com> wrote in message news:ac2nht$t8a$1@is.intellij.net...

Hello,

>

You'll find the original TLD test cases we use in Ariadna attached. Hope
this will help resolve most of the tld issues. If you think that some
important case is not covered by our test cases please let us know.

>

This testcases doesn't have ipr files. In order to open it in IDEA you
should create project, with project root equal to some test case path (e.g.
tld/, tei/test1, tei/test2, etc.) and create a web app with the same root.
In tei/test3 you should also add lib/test.jar to your classpath and in
tei/test4 you should add classes folder to classpath.

>

--
Best regards,
Mike Aizatsky.
------------------------------
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

>
>
>
>
>


0

This is completely defeating me; it seems that no matter what I do, I
cannot get the tag library to be resolved.

My project has the root of c:\project\dp

All my jsps are in c:\project\dp\scr

My tag library is in c:\project\dp\WEB-INF\PB_TAGLIB/taglib.tld

AS far as I can see, the call in my JSP should be:
<%@taglib uri="PB_TAGLIB/taglib.tld" prefix="pb"%>

But that is unresolved. It is still unresolved if I put
uri="/PB_TAGLIB/taglib.tld"
And it's still unresolved with uri="/WEB-INF/PB_TAGLIB/taglib.tld"

SO can anyone tell me exactly where it should be? This is baffling me.

JDL

0

Hi, John.

Did you set Project Properties -> Web -> Enable Web Application Support ?

And it's still unresolved with uri="/WEB-INF/PB_TAGLIB/taglib.tld"


It should be a right uri


--
Vlad Kamensky,
@Business SPb.


0


Vladislav Kamensky wrote:

Hi, John.

Did you set Project Properties -> Web -> Enable Web Application Support ?

>>And it's still unresolved with uri="/WEB-INF/PB_TAGLIB/taglib.tld"
>>


It should be a right uri



I hadn't no. Once I turned that on it all worked. Thank you

JDL

PS I need documentation :)

0

请先登录再写评论。