tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stubenrauch,Andreas" <me...@erv.de>
Subject RE: What's with the _0002f in the filenames? (Precompiling JSP's)
Date Wed, 29 Nov 2000 08:41:11 GMT
Hi,
afaik there are two reasons for this one is versioning (for recompiling and
loading) and the other as a char-mangling mechanism to make weired filenames
propper class names.

For a detailed discussion search the archives for topics like:
"jsp-filenames should be less than 20 characters"

Reagards,
Andreas

> -----Original Message-----
> From: Aleksey Tsalolikhin [mailto:atsaloli@earthlink.net]
> Sent: Wednesday, November 29, 2000 2:50 AM
> To: tomcat-user@jakarta.apache.org
> Subject: What's with the _0002f in the filenames? (Precompiling JSP's)
> 
> 
> Ok, here's a naive question:
> 
> When Tomcat (3.2b8/Sun JDK 1.2.2_06) runs a JSP file for me, 
> say, somefile.jsp,
> I notice it
> 
> a) precompiles to somefile.java in the work directory for that context
> b) compiles it to _0002fsomefile_0002ejspsomefile_0.class
> c) renames that to _0002fsomefile_0002ejspsomefile.class and 
> executes it
> 
> Why not somefile.class?
> 
> It'd make precompiling JSP's into classes a lot easier; I could run
> jspc to precompile the *.java files, and then "javac *.java" to 
> precompile the class files.
> 
> Sincerely,
> Aleksey
> 
> UNIX System Administrator
> 

Mime
View raw message