This rule flags any web module <welcome-file> that starts with a forward slash character (/) or a back slash character (\) in the web.xml file.
A quick fix for this rule is available in the source scanner. The quick fix removes the / or the \ from the name.
Given the following welcome file list:|
<welcome-file-list> <welcome-file>/index.html</welcome-file> <welcome-file>\index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>/default.html</welcome-file> <welcome-file>\default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> |
|
<welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> |