tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Kirkpatrick" <dan.kirkpatr...@xxi.com>
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.

-dan

-----Original Message-----
From: Zeltser, Mark [mailto:Mark.Zeltser@Cybic.com]
Sent: Tuesday, August 15, 2000 11:53 AM
To: 'tomcat-user@jakarta.apache.org'
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 [mailto:Craig.McClanahan@eng.sun.com]
Sent: Tuesday, August 15, 2000 12:56 PM
To: tomcat-user@jakarta.apache.org
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
path)
> using page directive. useBean works only if I provide full path to my
> class.
>

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

Craig McClanahan


Mime
View raw message