-in- A very basic JSP page:
<usebean name="arbeiders"
type="fabrinet.beans.groepBean"
lifespan="session">
</usebean>
<display property="arbeiders:test:voornaam"> // this works fine
</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);}
super(i,j);}
public Object getElements (int i){
return elementAt(i);
}
public int getElementsSize(){
return elementCount;
}
public Object getTest(){
return elementAt(3);
}
}
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(JRunProxyServiceHandler.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
GIF image