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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to