Originally posted by kartik krishnanand:
I have a JSP file which includes a lot of JSPs for purposes of modularity.
If you are using JSP 2.0, tag files would be a better mechanism for this purpose.
If you are worried that this is going to cause any sort of a performance issue, rest easy. The "import" is a translation-time artifact and will not affect run-time performance.
However, it is a pain in the neck, as well as error-prone, to copy the declarations on each and every page. You may want to explore the concept of a JSP prelude.
More information can be found in the JSP Specification.