Its a long story all on its own... and doesn't really have much to do with
tomcat, other than tomcat does similar things internally, but you have no
control over that.
~
Well, I just used tc to show as part of the previous thread on
c.l.j.p that it was indeed possible to (re)load totally new
If
you're seeing this page ...
p
Loading Generic classes:br/
[EMAIL PROTECTED] import=test.k00.*%
%
K00 k0 = new K00();
k0.i0 = 0;
k0.l0 = 0L;
%
/p
However I am getting The type K00 is not visible kinds of errors
How can I fix this error and make tc load the classes
Generic classes:br/
[EMAIL PROTECTED] import=test.k00.*%
%
K00 k0 = new K00();
k0.i0 = 0;
k0.l0 = 0L;
%
/p
However I am getting The type K00 is not visible kinds of errors
How can I fix this error and make tc load the classes?
Once the classes are loaded, would tc reload them if K00
thanks
I was experimenting with generics and classloading and used tc's
classloaders to clarify some issues relating to it
Check may want to check out the starting tread on comp.lang.java.programmer
Created a class dynamically but could not use it to create typed objects
lbrtchx
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Alan,
Alan Chaney wrote:
| Er... shouldn't you be making K00, GenK00 and its constructor public?
...and maybe also importing them into the JSP? JSPs are not in a
package -- at least not a predictable one, so you need to import your
classes using
Chris
Actually if you look at the link the OP provided you can see where he
was coming from/ going to... (sort of)
http://groups.google.com/group/comp.lang.java.programmer/browse_thread/thread/d739a953735e0beb/62a82237e403ab76?lnk=raot
He seems to be doing an experiment to try and do
. . . he thinks that tomcat can't handle 'generic' classes
~
Well, then I think tc classloaders do to the extent that I need
~
Here is what I need/have in mind.
~
I would get at run time some data that I can represent as DTOs part
of it is input and some other is output. I can and do create
: The type . . . is not visible
Hi
I need to check if the tc classloaders are able to load/reload generic
classes.
So I created two sample classes in /webapps/ROOT/WEB-INF/classes/test/k00:
package test.k00;
class K00{
public int i0;
public long l0;
}
and
package test.k00;
import