Re: MyClass.getPackage() == null... Why?

2001-09-24 Thread Dmitri Colebatch
Hi, I'm not sure if this is going to help, but... from the jdk javadoc: the package of the class, or null if no package information is available from the archive or codebase. It doesn't really clarify when no package information would be available... but in the Package docs: Package objects

MyClass.getPackage() == null... Why?

2001-09-23 Thread Eung-ju Park
Hi. I have one jars file in /WEB-INF/lib/test.jar test.jar contains com.MyClass class. I try below code in test.jsp. %page import=com.* % ... % if ( null == MyClass.class.getPackage() ) { out.println( NULL ); } else { out.println( MyClass.class.getPackage() ); } But classes in