using:
 public arbeiderBean getElements (int index){
  return (arbeiderBean) elementAt(index);
 }
i still have the same problem

Do you have to compile the beans in a diferent way (like you usual do with
beans) ?

-----Original Message-----
From: Bradley Wood
Sent: 11 March 1999 10:11
To: 'Mark Minnoye'
Subject: RE: help / cant't figure this out !


i had exactly the same problem

the thing is that what is returned from the getElements() method must,
itself be a bean.

your dispay tag <DISPLAY PROPERTY="arbeider:voornaam "> suggests that the
Object that returns from the getElements() method must have a getVoornaam()
method on it.

I have code that successfully does this, mail me off the list if you want
it.

brad

-----Original Message-----
From: Mark Minnoye [mailto:[EMAIL PROTECTED]]
Sent: 10 March 1999 20:13
To: [EMAIL PROTECTED]
Subject: help / cant't figure this out !


-in- A very basic JSP page:
<usebean name="arbeiders" type="fabrinet.beans.groepBean"
lifespan="session">
</usebean>
<display property="arbeiders:test:voornaam"> // this works fine

<LOOP PROPERTY="arbeiders:elements" PROPERTYELEMENT="arbeider">
<DISPLAY PROPERTY="arbeider:voornaam "> // this aint (2)
</LOOP>

groepBean.java :
package fabrinet.beans;

import java.util.Vector;

public class groepBean extends Vector {

public groepBean(int i,int j){
super(i,j);}

public Object getElements (int i){
return elementAt(i);
}
public int getElementsSize(){
return elementCount;
}
public Object getTest(){
return elementAt(3);
}
}

when i try to include the loop i get the folowing message:
javax.servlet.ServletException: Could not obtain indexed properties.

        at com.livesoftware.jrun.plugins.jsp.JSP.getIndexedProps(JSP.java)

        at jsp.content.arbeiders.arbeiders.service(Compiled Code)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:611)

        at
com.livesoftware.jrun.plugins.jsp.JSPCore.runServlet(JSPCore.java)

        at com.livesoftware.jrun.plugins.jsp.JSP.callPage(JSP.java)

        at com.livesoftware.jrun.plugins.jsp.JSP.service(JSP.java)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:611)

        at com.livesoftware.jrun.JRun.runServlet(Compiled Code)

        at
com.livesoftware.jrun.JRunGeneric.handleConnection(JRunGeneric.java)

        at
com.livesoftware.jrun.JRunGeneric.handleProxyConnection(JRunGeneric.java)

        at
com.livesoftware.jrun.service.proxy.JRunProxyServiceHandler.handleRequest(JR
unProxyServiceHandler.java)

        at com.livesoftware.jrun.service.ThreadConfigHandler.run(Compiled
Code)

        at java.lang.Thread.run(Thread.java:479)
I've spend hours looking for the bug, but i can't find it.
Anyone got any ideas ?
Thx, Mark

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to