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

This widget could not be displayed.

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
Community showcase
Posted yesterday in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

59 views 2 3
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