I have a javabean that's called from a JSP page. The bean compiles fine, but at
runtime JSP fails with no real explanation. The method code is something like

Vector myVec ;

MyCustomObject mco = new MyCustomObject() ;

myVec.add(mco) ;

Object[] o = myVec.toArray() ;

return (MyCustomObject)o ;

I'm pretty sure I've done this before in other cases, but in JSP it just fails.
BTW, it fails in both the JSWDK as well as WebLogic (both under Linux 6.1).

Obviously, I worked around it be just returning the array without casting it, then
casting each array element as I used it. But that's not clean and it pisses me off.

Is this a known bug? Where can I report it if it is?

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

Reply via email to