cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject RE: Taglib namespace bug?
Date Thu, 25 May 2000 01:01:56 GMT
On Wed, 24 May 2000, Nacho wrote:

> Hi, all this is a newbie question how can i pass parameters to a SQL
> taglibs Cocoon page? , to have a parametrized "where" clause in my
> query, 

try something like this:

<xsp:page
 xmlns:request="http://www.apache.org/1999/XSP/Request"
 xmlns:sql="http://www.apache.org/1999/SQL"
 xmlns:xsp="http://www.apache.org/1999/XSP/Core"
>

<sql:execute-query>
 ...
 <sql:query>select id,name from author_table where id =
  <request:get-parameter name="id"/>
 </sql:query>
</sql:execute-query>

(note you can't have line breaks in the sql:query text element right now,
they're just there for clarification)

- donald


Mime
View raw message