cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject Re: esql dynamic sql
Date Fri, 01 Jun 2001 19:37:26 GMT
On Fri, 1 Jun 2001, Oskar Werewka wrote:

>
> I need to include in my sql statement
> some parameters from request object
> and also from my java code.
>
> Example:
>
> "select * from users where userid = <requerst:get-paramtere/>"
>
> How about PreparedStatement?
>
> "select * from users where userid = ?"
>
> Can I use it somehow?

yes.

<esql:query>select * from users where userid =
  <esql:parameter><request:get-parameter name="username"/></esql:parameter>
</esql:query>

it's seamlessly turned into a preparedstatement.

- donald



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

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


Mime
View raw message