예:
<%!
Integer countSomeUsefulStuff() {
...
new ClassFromDefaultPackage(...); // 오류
new com.example.GoodClass(...); // 좋음
}
%>
<html>
<head>
<title>Hello, JSP!</title>
</head>
</html>
참고: JSP의 컴파일된 클래스는 보통 디폴트가 아닌 패키지(예: Tomcat 사용 시 'org.apache.jsp', WebSphere 사용 시 'com.ibm._jsp')에 있고, 디폴트 패키지에서 가져오기는 Java에서 허용되지 않기 때문에 그러한 참조는 JSP 컴파일 도중에 해결되지 않습니다.