jacquard 1.12.0 by The Web Engineering Factory and Toolworks

uk.co.weft.htform
Class DataTable

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byuk.co.weft.maybeupload.MaybeUploadServlet
              extended byuk.co.weft.htform.Servlet
                  extended byuk.co.weft.htform.DataTable
All Implemented Interfaces:
ResourceConsumer, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class DataTable
extends Servlet

A DataTable is a simple component intended to be used as an embedded servlet which shows tabular data. Closely related to List, q.v. Expects to find the following parameters in the context (in addition to the normal ones which allow connection to the database):

query
A valid query against the database
select_action
The URL to follow when an item is selected
id_column
The column whose value should be appended to the select_action URL to select a particular data item
link_column
The column to use as a link.

Version:
$Revision: 1.5.4.1 $ This revision: $Author: simon $
  $Log: DataTable.java,v $
  Revision 1.5.4.1  2005/12/23 10:48:33  simon
  Brute force tidy up after CVS server crash: this time it should work.

  Revision 1.5  2003/08/20 09:38:35  simon
  Code cleanup with eclipse; mostly removal of exccessive includes

  Revision 1.4  2001/11/20 10:46:48  simon
  Err... nothing's actually changed; the CVS is lying

  Revision 1.3  2000/10/20 16:11:04  simon
  Changes in line with re-usable, thread-safe ResultFormatter.

  Revision 1.2  2000/10/18 09:57:16  simon
  Changes to ResultFormatter and friends to make table headers switchable.

  Revision 1.1  2000/10/16 12:09:49  simon
  New files: DataTable, an embedded servlet similar to List;
  FileMaybeUploadWidget, a widget to allow files to be uploaded (not yet
  working); URLWidget, a widget which validates the format of submitted
  URLs and can optionally link-check them.


 
Author:
Simon Brooke (simon@jasmine.org.uk)
See Also:
ResultFormatter, List, Serialized Form

Field Summary
 
Fields inherited from class uk.co.weft.htform.Servlet
calendar, conf, contentType, CONTENTTYPECONFIGTOKEN, cookieDomain, cookiePath, COOKIESCONFIGTOKEN, cookieTTL, dbPassword, dbUrl, dbUsername, debug, DEBUGCONFIGTOKEN, driverName, embedded, here, identity, localeMagicToken, LOCALEMAGICTOKEN, outputStreamMagicToken, OUTPUTSTREAMMAGICTOKEN, parsePathInfo, PATHINFOMAGICTOKEN, ready, redirectMagicToken, REDIRECTMAGICTOKEN, requestMagicToken, REQUESTMAGICTOKEN, resourceBundleName, responseMagicToken, RESPONSEMAGICTOKEN, servletMagicToken, SERVLETMAGICTOKEN, sessionMagicToken, SESSIONMAGICTOKEN, USEHTTPSCONFIGTOKEN, zone
 
Fields inherited from class uk.co.weft.maybeupload.MaybeUploadServlet
allowOverwrite, maxUpload, saveUploadedFilesToDisk, silentlyRename, uploadDir, uploadDirPath, uploadDirURL
 
Fields inherited from interface uk.co.weft.htform.ResourceConsumer
RESOURCEBUNDLEMAGICTOKEN
 
Constructor Summary
DataTable()
           
 
Method Summary
protected  void generateContent(Context c)
          as I expect to be embedded, don't generate headers!
 
Methods inherited from class uk.co.weft.htform.Servlet
addCookie, addCookie, coerceCookiesToContext, coerceToContext, coerceToContext, coerceToContext, coerceToContext, coerceToUrl, createContext, doGet, doPost, fixupMagicValues, getCalendar, getContentType, getDebug, getLocale, getOutputStream, getResource, getResourceString, getServletInfo, grs, grs, handleAction, handleCookies, handleRedirect, init, init, makeReady, outputRedirectBlock, setCookieValues, storeOnSession, whinge, whinge
 
Methods inherited from class uk.co.weft.maybeupload.MaybeUploadServlet
doDelete, doHead, doOptions, doPut, doTrace, getUploadDir, getUploadURL, service
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataTable

public DataTable()
Method Detail

generateContent

protected void generateContent(Context c)
                        throws java.lang.Exception
as I expect to be embedded, don't generate headers!

Specified by:
generateContent in class Servlet
Parameters:
c - the context in which to generate this content.
Throws:
java.lang.Exception

jacquard 1.12.0 by The Web Engineering Factory and Toolworks