Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ixTable without DB. using html-template  RSS feed

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">
<th id = "idname" width="15" height="50" align="center">name</th>
<td id = "idcity" width="15" height="50" align="center">city </th>
My Servlet is:
TableDataSet myTbl = new TableDataSet();;
myTbl.addColumn("name", Variant.STRING);
myTbl.addColumn("city", Variant.STRING);
myTbl.addColumn("john", Variant.STRING);
myTbl.addColumn("chicago", Variant.STRING);

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!