Shrisha,
Shrisha Radhakrishna wrote:
> Here is the answer! You are trying to instantiate a custom class that is
> not inside any package from within a .java that is inside a package. When
> your JSP is translated into a java file, the compiler automatically puts it
> in a package. (in weblogic, it is jsp_package;).
Thanks for taking the time to look at the example code. However, once again I have
to say that your comment on the sample code is not valid for the actual code that
I'm executing. The custom object is in fact in a pacakge. My sample code was only
there to show conceptually what was going on, rather than to be analyzed for coding
errors.
There are no code errors in the actual code.
In the code as it is working now, within the jsp page I invoke the method that
returns a vanilla Object array. As I access each element of the array I have to
typecast it to the class of my custom object. That works with no problem. The jsp
engine understand my custom object perfectly well. It just won't let me do class
casting of arrays.
If anyone is doing class casting of entire arrays within a jsp execution context, I
would really like to hear about it.
Cheers,
George
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets