Now that I'm looking at fixing the name mangling, I'm confused.

There are two jasperc compilers in the source tree
    jakarta-tomcat-jasper
and another under jakarta-tomcat-4.0, which is probably what the current
jspnamemangler came from.

>From the branch tree it is jakarta-tomcat-jasper that is active. The latter
does its name mangling thusly:

    public String getServletClassName() {
        if (servletClassName != null) {
            return servletClassName;
        }
        int iSep = jspUri.lastIndexOf('/') + 1;
        int iEnd = jspUri.length();
        StringBuffer modifiedClassName =
            new StringBuffer(jspUri.length() - iSep);
 if (!Character.isJavaIdentifierStart(jspUri.charAt(iSep))) {
     // If the first char is not a legal Java letter or digit,
     // prepend a '_'.
     modifiedClassName.append('_');
 }
        for (int i = iSep; i < iEnd; i++) {
            char ch = jspUri.charAt(i);
            if (Character.isJavaIdentifierPart(ch)) {
                modifiedClassName.append(ch);
            } else if (ch == '.') {
                modifiedClassName.append('_');
            } else {
                modifiedClassName.append(mangleChar(ch));
            }
        }
        servletClassName = modifiedClassName.toString();
        return servletClassName;
    }

So the rules are pretty simple, except I dont see the addtion of the _jsp at
the end. Where does that come from? Does anyone know their way round jasper
*and* what any likely changes are due.

-Steve


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to