Occasionally on JSP pages when you use a new class Intellij prefixes the package path before the class name. This is not what you want. Never seems to do it for java classes, only JSP pages. For the rest JSPs work fine. This is pointed out in two bugs:
This broke sometime in release 9: it is only fixed in 9.02 (in version 8 it always worked and still does), and is broken again in all successive versions (e.g. 9.0.4 and following), whethern on Windows or on OSx.
In version 11, not only the bug is still there, but if you remove all imports, the "magic" auto import creation features imports them all wrong (with full path in the body) apart from the first one, which is placed all alone at the top of the page.