You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Marco Pauck <pa...@wmd.de> on 2000/08/03 21:24:22 UTC

SQL taglib vs. SQL processor

I've just successfully utilized both the SQL taglib as well as
the SQL processor to build a first interactive Cocoon application
targeted at web and wap devices - very nice!

However, something that is still not clear to me is why both a
taglib as well as a processor exist. From my trials, it seems
to me that the processor is clearly superior, especially regarding
the common requirement to build SQL statements dynamically.

Nevertheless, the taglib was introduced *after* the processor, so
I guess it must have some benefits ... any comments? Donald?

	Marco

Re: SQL taglib vs. SQL processor

Posted by Donald Ball <ba...@webslingerZ.com>.
On Thu, 3 Aug 2000, Marco Pauck wrote:

> I've just successfully utilized both the SQL taglib as well as
> the SQL processor to build a first interactive Cocoon application
> targeted at web and wap devices - very nice!
> 
> However, something that is still not clear to me is why both a
> taglib as well as a processor exist. From my trials, it seems
> to me that the processor is clearly superior, especially regarding
> the common requirement to build SQL statements dynamically.
> 
> Nevertheless, the taglib was introduced *after* the processor, so
> I guess it must have some benefits ... any comments? Donald?

processor was the first iteration. it's not superior - it's ever so much
harder to configure it using run-time information. the {@syntax} is a
kludgy hack - the <request:get-parameter> stuff you get with XSP
logicsheets is ever so much handier - you can access information from any
run-time source you can think of, rather than the highly limited info you
can get from the processor. the logicsheet is faster (after the first
compilation pass). it's got more features too - including, now, a
connection pool.

nonetheless, there are some users (well, one - uli) who are fanatically
committed to using the processor due to some limitations in the current
XSP processor (can't handle large XSP pages because it puts most
everything in one big method, and methods are limited to 64k in java). so
if it works better for you, go to town with it. the code is very simple so
it shouldn't be much of a chore for you to maintain. i mean, c'mon, this
isn't exactly rocket science - you just iterate over the result set and
create elements. very straightforward.

- donald