tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53737] New: Use ServletContext.getJspConfigDescriptor() in Jasper instead of XML-parsing of merged web.xml
Date Sat, 18 Aug 2012 00:54:55 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53737

          Priority: P2
            Bug ID: 53737
          Assignee: dev@tomcat.apache.org
           Summary: Use ServletContext.getJspConfigDescriptor() in Jasper
                    instead of XML-parsing of merged web.xml
          Severity: enhancement
    Classification: Unclassified
                OS: Windows XP
          Reporter: knst.kolinko@gmail.com
          Hardware: PC
            Status: NEW
           Version: trunk
         Component: Jasper
           Product: Tomcat 8

In Tomcat 7.0.29 in ContextConfig#webConfig() a merged web.xml file is
serialized into String and is put as an attribute into ServletContext.

[[[
        String mergedWebXml = webXml.toXml();
        sContext.setAttribute(
               org.apache.tomcat.util.scan.Constants.MERGED_WEB_XML,
               mergedWebXml);
]]]

Then in JspConfig#processWebDotXml() of Jasper it is parsed again from XML into
objects.

It would be better to access the necessary configuration through Servlet 3.0
API methods such as ServletContext.getJspConfigDescriptor().

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message