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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,774 views 11 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot