Some of the artifacts from jsp files, which were getting created on 7.3.3 version are not getting created on higher versions.
Release | Yes/No |
---|---|
8.3.x | |
8.2.x | |
8.1.x | |
8.0.x | |
7.3.x | |
7.2.x | |
7.0.x |
RDBMS | Yes/No |
---|---|
Oracle Server | |
Microsoft SQL Server | |
CSS3 | |
CSS2 | |
CSS1 |
- Configure analysis of JSP files
- Run analysis
- Check in Enlighten
In the analysis log file,you may find the following warnings:
Syntax not recognized: \n--------------------------^
The syntax error pointed out is for white spaces.If we have a multi-line JSP comment within the script tag,it is converted into the HTML comment before being fed into the JavaScript parser. This results in the syntax error in the JavaScript parser and hence the missing objects.
Example:
<script language = "javascript"> <%-- document.getElementById("<%=inputTxtTextFieldName%>").value ='<%=WebUtil.formatStringForRTF((strCommentAttribute != null)?strCommentAttribute:"")%>'; --%> </script>
If the problem is with some files, the workaround is to change this comment into a single line comment and then run the analysis.
Example:<script language = "javascript"> <%--document.getElementById("<%=inputTxtTextFieldName%>").value ='<%=WebUtil.formatStringForRTF((strCommentAttribute != null)?strCommentAttribute:"")%>';--%> </script>
If the problem is with many files,the workaround would be to use text replacement for the multiple line comment.
1. Replace (<%--\s*) with <%-- 2. Replace (\s*--%>) with --%>
No impact