This rule flags the JSP import directives that specify classes from the unnamed (also known as the default) package.
As of JSP 2.0, it is illegal to refer to any classes from the default package.
Example:
|
<%@ page import="MyClass" %>
<%@ page import="mypackage.MyClass" %> |
In the example, the first import triggers the rule while the second one does not.