On 12/28/2000 at 2:47 PM Craig R. McClanahan wrote:
> To go a step further into my 1.1 fantasy, assume that the relevant
tags knew how
to understand the XPath syntax (http://www.w3.org) used, among other
places, to
access data in XSLT stylesheets -- and make it transparent whether the
data is
coming from JavaBeans (as in Struts 1.0), JDBC RowSets (as described
above), or
XML DOM objects.

Yes, I remember your post about the XML extension, and the aside about
row sets. Very cool.

I'd like to work toward the 1.1 tag you've described, but absolutely
need to get started with something today. 

Right now, I'm working along the lines of a QueryFormBean that extends
ActionFormBean to encapsulate a SQL-statement String, ResultSet and
Collection.

I'm thinking that the Action could grab a connection from the pool, and
generate a statement based on the bean's query string, store the result
in the bean's ResultSet, punch the rows we need into the collection,
and foward it on to the form, where the interate tag could run it
through the iterate tag. 

I'm also hoping that by using an ActionFormBean, I could load the SQL
statements from the configuration file ;-)


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/


Reply via email to