tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 6939] New: - CommandLineContext.getServletPackageName() returns invalid package name
Date Wed, 06 Mar 2002 23:09:21 GMT
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=6939>.
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=6939

CommandLineContext.getServletPackageName() returns invalid package name

           Summary: CommandLineContext.getServletPackageName() returns
                    invalid package name
           Product: Tomcat 4
           Version: 4.0.2 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: croc@netclub.ru


subj returns invalid package name for a custom package specified
>>> such a mess ... :(((
        //Assemble the package name from the base package name speced on
        //the command line and the package name derived from the path to
        //the jsp file
        String packageName = "";
        if (servletPackageName != null && !servletPackageName.equals("")) {
            packageName = servletPackageName;
        } 
        if (packageName.equals("")) {
            packageName = pathName.replace('/', '.');
        } else {
            packageName += pathName.replace('/', '.');
        }
        //strip off any leading '.' in the package name
        if (!packageName.equals("") && packageName.charAt(0) == '.') {
            packageName = packageName.substring(1);
        }
>>>

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message