Can't you serialise the object ?
John
-----Original Message-----
From: John M. O'Neill [mailto:[EMAIL PROTECTED]]
Sent: 18 May 2000 16:50
To: [EMAIL PROTECTED]
Subject: Re: Retreivng data from a vector
RMI can't deal with vectors. In the ejb you need to return an enumeration:
Enumeration enum = theVector.elements();
In the jsp code then you cast it into the object type you are looking for.
This
is how I do it for my ejb/servlet code.
HTH,
john
Zaina Ajakie <[EMAIL PROTECTED]> on 05/18/2000 10:50:16 AM
Please respond to A mailing list about Java Server Pages specification and
reference <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: John M. O'Neill/CLE/Sherwin-Williams)
Subject: Re: Retreivng data from a vector
how did you place them into the vector??
Zaina Ajakie
Development
Surf without Searching...
http://www.etour.com
mailto:[EMAIL PROTECTED]
-----Original Message-----
From: Bhatia Ashish [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 18, 2000 9:39 AM
To: [EMAIL PROTECTED]
Subject: Retreivng data from a vector
hi,
i am trying to return data from my EJB to a JSP using a vector.
I push the recordset (as objects of type Details) in the vector in my EJB
and my JSP retrieves the same thru a business method.
But when i try to use that data using either the vector or enumeration in my
JSP, i get typecast error.
Details Det = (Details) vec.elementAt(i);
Details Det = (Details)en.nextElement();
Can somebody help?
Visit http://www.niit.com for eCommerce Solutions.
===========================================================================
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
===========================================================================
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
===========================================================================
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
===========================================================================
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