Version: 1.0 - Copyright 2005, Bensoft Inc.
relational mapping using a tool such as Hibernate, returned from a server connecting a group of peers or pipelined from another source like a SOAP server.
In other words, jsquery allows the pages in your web application to dynamically get new information from the a server application without requiring a page refresh. For a quick functional example of why you would want to do this, see
sql zip code example
- Server side zip result provider, uses JDBC auto-mapping.
Using your favorite datasource with jsquery
In a nutshell, your data translator should call
methods in the following order:
Send the metadata (data definition):
writeResultSet - client side declaration of jsqueryResultSet object.
writeTableName - set the name of the return table
addColumnDef - LOOP: add a column definition (call for all columns).
Or use the quick metadata method:
addColumnDef - LOOP: for each column defined
writeMetaData - in place of all writeXXX methods above
Then iterate through your 2D data:
LOOP: for each row of data
addColumnValue - LOOP: for each column definition above
writeRow - at end of columns
when done call:
writeEnding = Stub for stuff to do afterwards.
How it works - Step by step:
The JSP/Servlet reads the request parameters from the URL (GET refs) and generates data. The source can be anything the server has access to such as a SQL database, Object Relational Map, SOAP service, etc...
requiring enough memory on the client to hold the entire data set (in other words, don't send 10,000 rows of a large data set to the client!)
Server Side Application Layer Query Security Layer. I am thinking about using a library like
A JS/DHTML 'history' dropdown could be incorporated to provide a server-side suggestion interface.
Add user interface component to dynamically populate and set SELECT/OPTION elements.
I decided not to tackle sending the data to the server via HTTP POST. Looks like it's not supported well by some browsers and more trouble that it's worth. Let me know if this is a problem for you and I'll look into supporting it.
A chat application using zero-disk and an application context would be cool.
An app context multi-user game of some sort.
I first experimented with the idea of generated code for data encapsulation back in the mid 90's when I was writing
based content systems for the