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=25923>.
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=25923

using classes not in any package fails

           Summary: using classes not in any package fails
           Product: Tomcat 5
           Version: 5.0.16
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Servlet & JSP API
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hi,
it is not possible to use a class which is not in a package in a jsp. 
Example: 

webapps/demojsp/WEB-INF/classes/Adder.class
webapps/demojsp/add.jsp

An import in the add.jsp is not allowed because of the spec:
<%@ page info="Adder Page" import="Adder" %>
produces a not compileable java source because of invalid import statement.

But without the import statement the Adder.class will not be found.

So it is not possible to use the Adder.class which is not in any package?!

Is this missing in the spec or a bug in tomcat. I tested it with any tomcat
Version 3,4,5 (it is all the same).

(Ok, it is not very important because of bad style not using namespaces, but I
sumble across it from a real scenario using a foreign class)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to