tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Billy Ng" <kwo...@earthlink.net>
Subject Re: why tomcat append WEB_0002dINF... to the precompiled jsp package
Date Mon, 30 Jun 2003 04:37:03 GMT
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" <funkman@joedog.org>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message