Package org.ops4j.pax.web.jsp
Package that contains implementation of "JSP container" from the point of view of Servlet API specification.
At some point during evolution of Servlet/JSP API specifications, the Servlet container was freed from the
responsibility of being "JSP container" and the interoperation was delegated to the mechanism of
ServletContainerInitializers (SCIs). This package contains one such SCI that prepares
the context (and in Pax Web it is specialized OSGi context) to allow usage of JSPs. The most
important thing is support for discovering TLD descriptors.
In Pax Web 7 there was quite complex machinery involved and several Tomcat (Jasper) classes had to be shadowed in pax-web-jsp. But in Pax Web 8 it's all much cleared.
One example is org.apache.tomcat.util.descriptor.DigesterFactory that had to be changed to look
for JSP/Servlet API XSDs using different means. pax-web-jsp simply contains the needed resources, so original
org.apache.tomcat.util.descriptor.DigesterFactory works out of the box.
-
Class Summary Class Description InstanceManager JasperInitializer Pax Web extends original initializer, so it is possible to override theTldScanner.JspServlet Pax Web extension of the originalJspServletto set proper TCCL, so Jasper can correctly createExpressionFactory.PaxWebTldScanner Version ofTldScannerthat know a bit more about OSGi.