I know it make more sense to do appending . But the funny part is it won't append the src path in 4.1.12. It appends the src path in 4.1.24. The inconsistentency confused me.
Billy Ng ----- Original Message ----- From: "Tim Funk" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Sunday, June 29, 2003 5:57 PM Subject: Re: why tomcat append WEB_0002dINF... to the precompiled jsp package > Why not? > > When a page is precompiled (or even compiled at run time) - all that is > required is a valid java class name. (By the spec). > > So it could be legal for tomcat to translate every jsp into a class called > more.Cowbell.java. This is ok since every JSP is loaded under its own class > loader. > > But this would be a pain for debuggers since any breakpoint in the > "more.Cowbell" class could turn into debugging hell. So the naming of classes > is some composite of what you see below. > > -Tim > > Billy Ng wrote: > > Hi folks, > > > > I am using ant to precompile the jsp files. Let's say the in package name is "com.mycompany.jsp" and the jsp file is in the /jsp/admin/logon. > > > > After the jsp compiled to java, the package name becomes > > > > com.mycompany.jsp.WEB_0002dINF.jsp.admin.logon > > > > Why? > > > > Thanks! > > > > Billy Ng > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
