cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject Re: XSP/ESQL - making a tag depend on a request parameter
Date Wed, 21 Mar 2001 20:28:10 GMT
On Wed, 21 Mar 2001, Nikolai Petroff wrote:

> How can I make the following code work?
>
> <esql:connection>
>   <esql:driver>com.internetcds.jdbc.tds.Driver</esql:driver>
>   <esql:dburl>jdbc:freetds:sqlserver://xxxxxxxx/xxxx</esql:dburl>
>   <esql:username>xxxxx</esql:username>
>   <esql:password>xxxxx</esql:password>
>   <esql:execute-query>
>     <esql:query>exec getPages</esql:query>
>     <esql:results>
>       <esql:row-results>
>         <page>
>           <id><esql:get-int column="id"/></id>
>           <name><esql:get-string column="name"/></name>
>
>           <xsp:logic>
>            create the body tag if <id> = request.getParameter("id") {

              if (<esql:get-int column="id"/> == Integer.parseInt(request.getParameter("id")))
{

>             <body><esql:get-string column="body"/></body>
>            }
>           </xsp:logic>
>
>         </page>
>       </esql:row-results>
>     </esql:results>
>   </esql:execute-query>
> </esql:connection>

- 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