﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <description><![CDATA[Comments for JBuilder, 2, Building Java Servlets with JBuilder]]></description>
    <title><![CDATA[Comments for JBuilder, 2, Building Java Servlets with JBuilder]]></title>
    <link>http://dn.codegear.com/article/10166</link>
    <!-- source: http://dn.codegear.com/article/10166/feed-->
    <dc:date>2008-11-19T05:11:48-08:00</dc:date>
    <item>
      <description><![CDATA[the source code is not complete ...would be fine to get the full one thanks;)]]></description>
      <title><![CDATA[JBuilder, 2, Building Java Servlets with JBuilder]]></title>
      <managingEditor>
	 (Craven Weasel)
</managingEditor>
      <guid isPermaLink="true">http://threads.codegear.com/threads/threads.exe/view?commentid=25310</guid>
      <dc:date>2000-06-08T13:36:48-07:00</dc:date>
      <pubDate>2000-06-08T13:36:48-07:00</pubDate>
      <source url="http://dn.codegear.com/article/10166/feed">Comments for JBuilder, 2, Building Java Servlets with JBuilder</source>
    </item>
    <item>
      <description><![CDATA[Here I attach correct code:public class DataTableImpl implements IDataTable {/* *  A convenience class that copies the data from QueryDataSet *  into a table of Strings. */  private String[] columnNames;  private Vector tableData;  private int columnCount;  private int rowCount;  public DataTableImpl() {    super();  }  public DataTableImpl(QueryDataSet queryDataSet) throws DataSetException  {      DataRow dataRow   = new DataRow(queryDataSet);      this.columnCount  = dataRow.getColumnCount();      this.rowCount     = queryDataSet.getRowCount();      this.columnNames  = dataRow.getColumnNames( columnCount );      copyQueryData(queryDataSet, dataRow);  }  private void copyQueryData(QueryDataSet queryDataSet, DataRow dataRow)    throws DataSetException  {    tableData = new Vector();    for(int i=0; i&lt;rowCount; i++) {      String[] data = new String[columnCount];      queryDataSet.getDataRow(i, dataRow);      for(int j=0; j&lt;columnCount; j++) {        data[j] = dataRow.format(j);      }      tableData.addElement(data);    }  }  public String[] getColumnNames() {    return this.columnNames;  }  public int getRowCount() {    return this.rowCount;  }  public int getColumnCount() {    return this.columnCount;  }  public String getDataAt(int row, int column) {    return ((String[])tableData.elementAt(row))[column];  }  //Return a tab/newline delimited String  public String toTableString()  {    return toTableString("","\n","","\n","","\t");  }  //Return an HTML String representation of this object  public String toHTMLString()  {    return toTableString("&lt;table width=\"80%\" height=\"80%\" border=\"1\"&gt;",     "&lt;/table&gt;\n", "&lt;tr align=center&gt;", "&lt;/tr&gt;\n", "&lt;td&gt;", "&lt;/td&gt;");  }  // Convert the table data of this object to a String using the given table  // delimiters.  private String toTableString(String tblStart, String tblEnd,    String rowStart, String rowEnd, String dataStart, String dataEnd )  {    StringBuffer results = new StringBuffer();    String[] fullRowData = new String[columnCount];    try {    results.append(tblStart);    //Column names    results.append(rowStart);    for(int i=0; i &lt; columnCount; i++)    {      results.append(dataStart);      results.append(columnNames[i]);      results.append(dataEnd);    }    results.append(rowEnd);    //Data from DB    for (int j = 0; j &lt; rowCount; j++)    {      results.append(rowStart);      fullRowData = (String[])tableData.elementAt(j);      for(int i=0; i &lt; columnCount; i++)      {        results.append(dataStart);        results.append(fullRowData[i]);        results.append(dataEnd);      }      results.append(rowEnd);    }    results.append(tblEnd);    }    catch(Exception e) {      System.out.println( "Errore: " + e.toString() );    }    return results.toString();  }}]]></description>
      <title><![CDATA[re: JBuilder, 2, Building Java Servlets with JBuilder]]></title>
      <managingEditor>
	 (Enrico Pesente)
</managingEditor>
      <guid isPermaLink="true">http://threads.codegear.com/threads/threads.exe/view?commentid=25306</guid>
      <dc:date>2000-06-08T05:35:12-07:00</dc:date>
      <pubDate>2000-06-08T05:35:12-07:00</pubDate>
      <source url="http://dn.codegear.com/article/10166/feed">Comments for JBuilder, 2, Building Java Servlets with JBuilder</source>
    </item>
    <item>
      <description><![CDATA[Where do we get the complete code for this ? The code obviously is not complete.]]></description>
      <title><![CDATA[JBuilder, 2, Building Java Servlets with JBuilder]]></title>
      <managingEditor>
	 (Vydianath  Iyer)
</managingEditor>
      <guid isPermaLink="true">http://threads.codegear.com/threads/threads.exe/view?commentid=24164</guid>
      <dc:date>2000-02-11T11:15:19-08:00</dc:date>
      <pubDate>2000-02-11T11:15:19-08:00</pubDate>
      <source url="http://dn.codegear.com/article/10166/feed">Comments for JBuilder, 2, Building Java Servlets with JBuilder</source>
    </item>
    <item>
      <description><![CDATA[The code does not compile with JBuilder!There are a couple of places where the code has been lost, in DataTableImpl, toTableString method, half way through the for loop, there's a chunk missing. It's not obvious to me how much code is missing.  Anyone care to update the document for JB3 (it's aimed at JB2, deprecated classes!)I really need some guidence on accessing a backend database with Java Servlets and presenting the data in a browser environment.Thanks]]></description>
      <title><![CDATA[JBuilder, 2, Building Java Servlets with JBuilder]]></title>
      <managingEditor>
	 (Nick Moore)
</managingEditor>
      <guid isPermaLink="true">http://threads.codegear.com/threads/threads.exe/view?commentid=24031</guid>
      <dc:date>2000-01-21T06:14:14-08:00</dc:date>
      <pubDate>2000-01-21T06:14:14-08:00</pubDate>
      <source url="http://dn.codegear.com/article/10166/feed">Comments for JBuilder, 2, Building Java Servlets with JBuilder</source>
    </item>
    <generator>Atom 1.0 XSLT Transform v1 (http://atom.geekhood.net)</generator>
  </channel>
</rss>