Jira 6 taglib

Hi guys,

Just notice out of curiosity that in jira 6 (milestone) in web.xml

<jsp-config>
        <taglib>
            <taglib-uri>webwork</taglib-uri>
            <taglib-location>/WEB-INF/tld/webwork.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>sitemesh-page</taglib-uri>
            <taglib-location>/WEB-INF/tld/sitemesh-page.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>sitemesh-decorator</taglib-uri>
            <taglib-location>/WEB-INF/tld/sitemesh-decorator.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>jiratags</taglib-uri>
            <taglib-location>/WEB-INF/tld/atlassian-jira-tags.tld</taglib-location>
        </taglib>
    </jsp-config>

"webwork" uri is mapped to "/WEB-INF/tld/webwork.tld". Inside webwork.tld, it declares a tag called "soy". I guess this means that there is an explicit mapping of "webwork" uri to this "webwork.tld" that has a tag called "soy".

Under "/WEB-INF/lib" directory there is a jar called "webwork-1.4-atlassian-22.jar" which has in it a taglib.tld file under "/META-INF/taglib.tld". It also has a uri mapping of "webwork". So I guess now there is an explicit mapping of "webwork" uri to this "/META-INF/taglib.tld" that unfortunately do not have a tag called "soy"

and in various places in jsp files jira uses

<%@ taglib prefix="ww" uri="webwork" %>
<%@ taglib prefix="aui" uri="webwork" %>

Just wondering out of curiousity how would different servlet containers treat this? Would it be using the explicit mapping or implicit one? Would it be clearer if Jira just make use of either one of them?

As far as i can tell from Glassfish Jasper implementation it does :-

- Explicit mapping

- Implicit mapping

- etc.

where the implicit mapping will override the explicit mapping ones (just from my quick read o fthe code, so i might be way off here).

I guess my questions is how does cotainers treat this situation? Can't recall reading this from the spec. If someone can help shed some light on this issue that'd be great.

Thanks in advance guys

Toby

1 answer

Just an update. According to JSP 7.3.2, the precedence should be explicit ones from web.xml followed by implicit ones. So consider this question answered :-)

Cheers

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

49 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you