You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2001/10/31 20:35:49 UTC
DO NOT REPLY [Bug 4550] New: -
page directive improperly parses multiple import statements
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4550>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4550
page directive improperly parses multiple import statements
Summary: page directive improperly parses multiple import
statements
Product: Tomcat 4
Version: 4.0.1 Final
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Major
Priority: Other
Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: gwatts@onepipeline.com
Similar to Bug #4022
When a jsp has the following page directive:
<%@page
import="java.util.Vector"
import="com.mycompany.myObj.BOTasks"
import="com.mycompany.myObj.BOCrmJsp"
import="com.mycompany.utils.StringUtils"
%>
renders the following compilation:
package org.apache.jsp;
import java.util.Vector;
import java.util.Vector;
import java.util.Vector;
import java.util.Vector;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
...
The first import is replicated the same amount of import statements in the
directive.
As the spec states,
JSP.2.10.1 The page Directive
...
However, there shall be only one occurrence of any attribute/value defined by
this directive in a given translation unit with the exception of the �import�
attribute; multiple uses of this attribute are cumulative (with ordered set
union semantics). Other such multiple attribute/value (re)definitions result in
a fatal translation error.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>