• Post Reply Bookmark Topic Watch Topic
  • New Topic

ixTable without DB. using html-template  RSS feed

 
dar
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody.
I'm learning InternetBeans. I want to fill dynamic data within table in servlet (I no have DB), and use CSS in template-HTML.

My template-HTML file is:
...
<table id = "idtable">
<thead>
<th id = "idname" width="15" height="50" align="center">name</th>
<td id = "idcity" width="15" height="50" align="center">city </th>
</thead>
<tr>
<td></td>
<td></td>
</tr>
</table>
My Servlet is:
TableDataSet myTbl = new TableDataSet();
myTbl.open();
myTbl.insertRow(true);
myTbl.next();
myTbl.addColumn("name", Variant.STRING);
myTbl.addColumn("city", Variant.STRING);
myTbl.insertRow(true);
myTbl.next();
myTbl.addColumn("john", Variant.STRING);
myTbl.addColumn("chicago", Variant.STRING);
myTbl.insertRow(true);
myTbl.next();
......
myTbl.close();
ixTable1.setDataSet(myTbl);

My output (in browser) is
name city john chicago jack honkong
Web View source code is
<table id="idtable"><thead>
<tr><th>name</th><th>city</th><th>john</th><th>chicago</th><th>jack</th><th>honkong</th></tr>< ;/thead></table>

What is wrong ??? Help me please?
Thank You for every advice.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!