You can import classes based on the following conditions, 1. Your class file must be present in the classpath 2. You cannot import classes that are present in the default package. 3. Your class file can be present in jar file which can be in the lib directory.
Ex 1 - by default WEB-INF/classes directory is in classpath.
Ex-2 - You cannot import a class in a jsp page that is present directly under classes directly.It must be present in some package in classes directory
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com