RE: What's with the _0002f in the filenames? (Precompiling JSP's)

2000-11-29 Thread Stubenrauch,Andreas

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:[EMAIL PROTECTED]]
 Sent: Wednesday, November 29, 2000 2:50 AM
 To: [EMAIL PROTECTED]
 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
 



What's with the _0002f in the filenames? (Precompiling JSP's)

2000-11-28 Thread Aleksey Tsalolikhin

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