cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gustavo Mejia <gme...@infotec.com.mx>
Subject Re: Problem with my query
Date Wed, 13 Jun 2001 21:22:56 GMT
Christopher sorry for all the troubles,

But, I didn't get it, I tried it, there is not any error message, but there is
not any result.

any other idea ??


Thanks so much !

Gustavo

Christopher Painter-Wakefield wrote:

> Gustavo,
>
> you want to use the request taglib, for which there isn't any documentation
> (hopefully soon there will be).  Anyway, try this:
> <esql:query>
>   select * from employee where empno=
>   <esql:parameter>
>     <request:get-parameter name="VAR"/>
>   </esql:parameter>
> </esql:query>
>
> You'll need to add a declaration for the request namespace in your xsp:page
> element, like this:
>   xmlns:request="http://www.apache.org/1999/XSP/Request"
>
> I think you will need to take out the quotes on your query string, like this:
> http://localhost/cocoon/servlet/sql/esql.xml?VAR=000001
>
> -Christopher
>
> Thanks again,
>
> Right, I need to do the first thing that you told me, I tried but with no
> results, I have something like this:
>
> <esql:query>select * from employee
>                     where empno=<esql:parameter>VAR</esql:parameter>
> </esql:query>
>
> and in my browser the url is:
>
> http://localhost/cocoon/servlet/sql/esql.xml?VAR="000001"
>
> but, doesn't show information.
>
> Maybe it is not very difficult, but I really starting with this things.
>
> Thanks
>
> Gustavo
>
> ---------------------------------------------------------------------
> 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