You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Richard <ri...@voxsant.com> on 2002/07/31 09:48:16 UTC

Action - DatabaseSelectAction and XSP + ESQL

Hi Guys

Between Action - DatabaseSelectAction and XSP + ESQL 

Which is better?

Which is easier to code?

How am I suppose to get the results on the Action - DatabaseSelectAction?

Thanks

Richard

Re: Action - DatabaseSelectAction and XSP + ESQL

Posted by Richard <ri...@voxsant.com>.
Thanks.

----- Original Message -----
From: "Christian Haul" <ha...@dvs1.informatik.tu-darmstadt.de>
To: <co...@xml.apache.org>; "Richard" <ri...@voxsant.com>
Sent: Wednesday, July 31, 2002 4:00 PM
Subject: Re: Action - DatabaseSelectAction and XSP + ESQL


> On 31.Jul.2002 -- 03:48 PM, Richard wrote:
> > Hi Guys
> >
> > Between Action - DatabaseSelectAction and XSP + ESQL
> >
> > Which is better?
>
> They target different use cases. To output the values, esql is easier
> and leaner. You might want to consider the SQLTransformer as well. If
> you use XSP, I would still recommend esql. If XSP is not needed, the
> transformer approach is 'better'. Action + transformer is also
> possible, but IMO unecessarily complex.
>
> > Which is easier to code?
>
> Since you would need to code the output in XSP anyways, esql.
>
> > How am I suppose to get the results on the Action -
DatabaseSelectAction?
>
> They are stored in request attributes (see javadocs / docs for names).
>
> Chris.
> --
> C h r i s t i a n       H a u l
> haul@informatik.tu-darmstadt.de
>     fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Action - DatabaseSelectAction and XSP + ESQL

Posted by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de>.
On 31.Jul.2002 -- 03:48 PM, Richard wrote:
> Hi Guys
> 
> Between Action - DatabaseSelectAction and XSP + ESQL 
> 
> Which is better?

They target different use cases. To output the values, esql is easier
and leaner. You might want to consider the SQLTransformer as well. If
you use XSP, I would still recommend esql. If XSP is not needed, the
transformer approach is 'better'. Action + transformer is also
possible, but IMO unecessarily complex.

> Which is easier to code?

Since you would need to code the output in XSP anyways, esql.

> How am I suppose to get the results on the Action - DatabaseSelectAction?

They are stored in request attributes (see javadocs / docs for names).

	Chris.
-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>