I'm using from Business Component (from Oracle) the class Row for database
operations.
Below I sent the velocity log file, the template index.vm(screen) and the
class for template.
I got an error and I don't know how to solve it.
Velocity.log:
Mon Sep 10 14:25:37 EEST 2001 [error] Method getAttribute threw exception
for reference $bar in template screens/Index.vm at [9,1]
Index.vm
$vResults.size()
#foreach( $bar in $vResults )
$bar.getAttribute(1)
#end
Index.java
public class Index extends SecureScreen
{
...
public void doBuildTemplate(RunData data, Context context)
{
ApplicationModule am = null;
ViewObject vo = null;
Vector daten = null;
vo = am.createViewObjectFromQueryStmt("testview", "select * from
ram_xml");
if (vo != null)
{
while(vo.hasNext())
{
Row row = vo.next();
daten.add(row);
}
context.put("vResults",daten);
}
}
catch(Exception e)
{
System.out.println("EXCEPTION :: " + e);
}
Any suggestions will be appreciated.
Thanx
-------------------
Daniel Moldovan
Java Developer
LEVEL 7
Bucovinei 59D
1900 Timisoara
tel. 056/224872
-------------------