Page tree
Skip to end of metadata
Go to start of metadata

Summary: this page provides an explanation of how to handle JSPX files.

JSPX format is the XML version of JSP text format. The differences between each syntax are explained here: http://java.sun.com/products/jsp/syntax/2.0/card20.pdf. JSPX format is not supported by CAST, but here is a workaround that could manage most cases:

To manage JSPX files automatically from the J2EE analyzer, you can try to use text replacement in the JEE Analysis Unit > Analysis > Text Replacements or  in the Application > Analysis > Text Replacements to remove the root tags and some specific tags with the following configuration (the goal is to transform JSPX syntax into JSP syntax):

For example:

Regular ExpressionTypeReplacing text
<jsp:directive.page contentType="text/html;charset=utf8">Perl 
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"Perl 
</jsp:root>Perl 
xmlns:([^=]*)=\"([^\"]*)\"Perl<%@ taglib uri="\2" prefix="\1" %>

If this doesn't work, you must create JSP files from JSPX files using a XSLT transformation before analyzing them.

  • No labels