On Nov 21, 2013, at 4:59 AM, ma...@apache.org wrote:

> Author: markt
> Date: Thu Nov 21 12:59:36 2013
> New Revision: 1544165
> 
> URL: http://svn.apache.org/r1544165
> Log:
> Extend the reach of the Context attribute xmlValidation to cover XML parsing 
> by Jasper the JSP engine.
> Fix a TODO and enable validation (if required) for implicit TLD files.

JSP 6.2.4 raises issues around attempting to validate JSP Documents (.jspx and 
.tagx) due to the mixin's from the jsp: namespace. This could perhaps be 
enabled using a separate option from validation of the descriptors so users can 
validate the standard files but not need to add anything to the DOCTYPE/XSD for 
the application content.

Looks like JasperInitializer now reads to read an attribute not an init-param. 
In trunk, I'd been trying to decouple Jasper from Catalina so having the latter 
set a jasper-specific attribute reverts that - in TC7 this is controlled for 
each JspServlet using a "validating" init-param (i.e. it does not inherit from 
the Context).

I've been thinking of adding a descriptor file for Jasper (e.g. 
META-INF/jasper.xml to go alongside context.xml) which would contain 
configuration of the JSP engine that is currently split between context 
init-params, per-servlet init-params, and system properties. How about we 
configure validation there?

Cheers
Jeremy

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to