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 2002/03/07 00:09:21 UTC
DO NOT REPLY [Bug 6939] New: -
CommandLineContext.getServletPackageName() returns invalid package name
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>