flawless69
Programmer
Greetings all,
I have a servlet class(Servlet1) which contains an instance of another non-servlet class(Class1) that contains instances of several other classes and contains a vector instance. Using a main method class that simulates the method call Servlet1 makes to Class1, I can get the desired return values and all works great.
However when the servlet is invoked, It appears that Class1 and all the classes it talks to, are not working. The vector that is returned by Class1 ends up being empty when invoked by Servlet1 (as opposed to containing several objects when main method calls it).
Is there any reason that the servlet wouldn't perform EXACTLY the same as any other class when calling and containing instances of other classes?
A bit confusing, I know....
Thanks ahead,
Derek --Derek
"Fear not the storm for this is where we grow strong."
I have a servlet class(Servlet1) which contains an instance of another non-servlet class(Class1) that contains instances of several other classes and contains a vector instance. Using a main method class that simulates the method call Servlet1 makes to Class1, I can get the desired return values and all works great.
However when the servlet is invoked, It appears that Class1 and all the classes it talks to, are not working. The vector that is returned by Class1 ends up being empty when invoked by Servlet1 (as opposed to containing several objects when main method calls it).
Is there any reason that the servlet wouldn't perform EXACTLY the same as any other class when calling and containing instances of other classes?
A bit confusing, I know....
Thanks ahead,
Derek --Derek
"Fear not the storm for this is where we grow strong."