-
Story
-
Resolution: Done
-
Major
-
None
-
None
Websphere jsp files could have empty import attribute and won't fail while JBoss EAP verifies this and complains about it in deployment process. It is good to check this in a rule like:
<rule id="jsp-empty-imports"> <when> <filecontent filename="{*}.jsp" pattern="import={emptyString}" /> </when> <perform> <hint message="Empty imports definition in a jsp" effort="1" severity="mandatory"> <message>Empty import definitions in .jsp or .jspf files will fail in compilation time. It is needed to remove them.</message> </hint> </perform> <where param="emptyString"> <matches pattern="("")" /> </where> </rule>