Project: Tomcat
Bug 15688 full-qualified names instead of imports
Reported: 2002-12-27 22:30:47 | Status: resolved fixed

Hi, Jasper generated *.java-files that are compiled. The template for those files is very "unaesthetic". I could demonstrate nice side-effects using a simple <%@ page import="mypackage.Jspfactory" %> You should use full qualified names instead of a bunch of import-staments. For example _jspxFactory = JspFactory.getDefaultFactory(); would become _jspxFactory = javax.servlet.jsp.JspFactory.getDefaultFactory(); and if you don't already do, you should use the this-reference where possible. I don't know what the spec says about that conflict, but it shouldn't be a bad idea to use full-qualified names instead of imports.

Files changed in fix:
java/org/apache/jasper/compiler/Generator.java java/org/apache/jasper/compiler/JspUtil.java