tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Kirkpatrick" <>
Subject RE: Unable to load classes in JSP
Date Tue, 15 Aug 2000 20:58:56 GMT
I don't think this is a bug.  Tomcat doesn't know what pages are included
using the <% include %> directive, as this happens at compile time instead
of runtime.  In order to implement this behavior, Tomcat would have to parse
the .jsp file upon each reload, checking for the include directive.

I guess Tomcat could keep a table of JSP files and the files included by
them.  That would get *really* hairy, though.

In short, I don't think this is a bug, and it should not be on the bug list.


-----Original Message-----
From: Zeltser, Mark []
Sent: Tuesday, August 15, 2000 11:53 AM
To: ''
Subject: RE: Unable to load classes in JSP

Thanks Craig.

BTW, Looks like Tomcat doesn't recompile JSPs which were included using
<% include file...> directive. Is this on bug list?

Thanks, Mark.

-----Original Message-----
From: Craig McClanahan []
Sent: Tuesday, August 15, 2000 12:56 PM
Subject: Re: Unable to load classes in JSP

"Zeltser, Mark" wrote:

> Hi All,
> I am running Tomcat 3.1 with jdk1.2.2 under WinNt 4.0.
> Inside of my JSP page I import class files (they are in the class
> using page directive. useBean works only if I provide full path to my
> class.

Per the JSP specification, the <jsp:useBean> tag requires fully
class names for a bunch of technical reasons related to how you
dynamically instantiate instances of classes at runtime.

Craig McClanahan

View raw message