You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Craig R. McClanahan" <cr...@apache.org> on 2001/03/21 19:28:02 UTC

RE: cvs commit: jakarta-tomcat-4.0/jasper/src/share/org/apache/ja sper/compiler JspCompiler.java JspReader.java ParserController.java TagLi braryInfoImpl.java


On Wed, 21 Mar 2001, Steve Downey wrote:

> Javac does need to get at the class files in WEB-INF/classes, for any jsp
> that, say, uses a bean or tag defined in the WAR.
> 
> It isn't a requirement that the .java files for those classes be accessible.
> 

The Java sources do not have to be available, but the .class files
do.  Otherwise, when you compile a JSP page that uses a scriptlet
reference to a bean class in WEB-INF/classes, the compile will fail with a
class not found.

If you are running out of a WAR, there is no way to tell the compiler "use
this subdirectory of files out of this WAR file here".  That's why the
(previously working) code pulls out the appropriate stuff and *adds* the
appropriate work directories and JARs to the classpath provided by
Catalina.

Craig