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 2003/03/17 20:46:02 UTC
DO NOT REPLY [Bug 17997] -
JspC's webapp switch does not expand package names
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=17997>.
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=17997
JspC's webapp switch does not expand package names
------- Additional Comments From mike.bartlett@us.logical.com 2003-03-17 19:46 -------
I've found the same problem. My webapp uses the same JSP filename in
different subdirectories which results in errors.
I updated by JspC.java file as follows:
Added the following two lines to the public boolean processFile(String file)
method:
String packageSuffix = jspUri.substring(0, jspUri.lastIndexOf('/')).replace
('/','.');
clctxt.setServletPackageName(clctxt.getServletPackageName() + packageSuffix);
I added the two lines right before the line:
setupContext(clcText);
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org