its not your classpath.

you need a capital  M for your declaration

for (int i=0; i<size; i++)
  {
   medewerkerBean mwb = vect.elementAt(i);
   ^
   |
   |
  here




-----Original Message-----
From: Jasper de Barbanson [mailto:[EMAIL PROTECTED]]
Sent: 04 April 2001 11:57
To: [EMAIL PROTECTED]
Subject: Re: resultset & vector


> Couple of things :
> a) Your MedewerkerBean doesn't seem to be in the classpath, hence it is
not
> found.

I'm afraid it is in my classpath, I double checked it.. So it must be
something else..

> b) You need to cast the object to MedewerkerBean type after retrieving it
> from the Vector using the elementAt(int index) method of the Vector class.

You're right. I tried that and it worked.

> Have a nice day.
> With regards,
> Sachin S. Khanna.
> www.emailanorder.com

Bye,

Jasper de Barbanson

>
> ----- Original Message -----
> From: Jasper de Barbanson <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 04, 2001 3:22 PM
> Subject: resultset & vector
>
>
> > Hi there,
> >
> > I'm doing something wrong, but I don't know how to solve this. I've put
a
> > resultset in a vector, and I'm returning this vector to a JSP-page. Now
I
> > get these 2 errors:
> >
> > - Type medewerkerBean was not found
> > - The type of the left-hand side in this assignment, "medewerkerBean",
is
> > not compatible with the type of the right-hand side expression,
> > "java/lang/Object".
> > Does anybody know how to solve this problem?
> >
> > (perhaps this is a very simple question, but I'm new to Java Serverside
> > Programming)
> >
> > This is de JSP-page (i've removed unnecessary html-code):
> >
> >
> > <%@ page language="java" import="java.util.*" %>
> > <jsp:useBean id="medewerkerBean" scope="page" class="MedewerkerBean" />
> > <HTML><HEAD><TITLE>Testje</TITLE><HEAD>
> > <BODY>
> > <TABLE CELLSPACING="2" CELLPADDING="2" BORDER="1">
> > <TR>
> > <%
> >  Vector vect = new Vector();
> >  vect = medewerkerBean.findMedewerker("SP_AlleMedewerkers");
> >  int size = vect.size();
> >
> >  for (int i=0; i<size; i++)
> >  {
> >    medewerkerBean mwb = vect.elementAt(i);
> > %>
> > <TR>
> > <TD><%= mwb.getPersoneelsnummer()%></TD>
> > <TD><%= mwb.getVoornaam()%></TD>
> > <TD><%= mwb.getAchternaam()%></TD>
> > <TD><%= mwb.getAdres()%></TD>
> > <TD><%= mwb.getPostcode()%></TD>
> > <TD><%= mwb.getWoonplaats()%></TD>
> > <TD><%= mwb.getGebdatum()%></TD>
> > <TD><%= mwb.getTelnummer()%></TD>
> > <TD><%= mwb.getEmail()%></TD>
> > </TR>
> > <%
> >  }
> > %>
> >
> >
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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