You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael Fuchs <Mi...@t-online.de> on 2001/08/24 15:17:57 UTC

jspc character mangling

hi,

i am precompiling my jsp pages, otherwise the generated class file names
would be too long (Is this solved in the future ?). 

But if the filename of a jsp page contains an underscore (which is legal
in a java identifier), jspc.sh generates wrong java files, because it
mangles the underscores, too.

Example:
File name: LIST_CHAPTERS.jsp
Generated Java File is LIST_CHAPTERS.java
But the class inside has the name LIST_0005fCHAPTERS.java, so the
compiler
throws an error message.

Does anyone have a solution to this problem ?