cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Curdt <tcu...@dff.st>
Subject Re: [c2][patch] RE: ESQL : No, my problem isn't with mutual exclusivity
Date Mon, 30 Jul 2001 10:01:34 GMT
> > <page>
> > <esql:connection>
> >  <esql:pool>my_pool</esql:pool>
> >  <esql:execute-query>
> >   <esql:query>select name, number
> >    from employee
> >   </esql:query>
> >   <esql:results>
> >    <header>
> >     <name>EmpName</name>
> >     <number>EmpNumber</number>
> >    </header>
> >    <esql:row-results>
> >     <first-level>
> >      <esql:get-columns/>
> >     </first-level>
> >    </esql:row-results>
> >    <esql:no-results>
> >     <user>no Values available</user>
> >    </esql:no-results>
> >    <footer>copyright</footer>
> >   </esql:results>
> >  </esql:execute-query>
> > </esql:connection>
> >
> > </page>
> >
> > </xsp:page>
>
> Looks ok...

Ah.. missed it! Your no-results is under results that's wrong!

You probably want something like this:
> > <page>
> > <esql:connection>
> >  <esql:pool>my_pool</esql:pool>
> >  <esql:execute-query>
> >   <esql:query>select name, number
> >    from employee
> >   </esql:query>

       <header>
        <name>EmpName</name>
        <number>EmpNumber</number>
       </header>

> >   <esql:results>
> >    <esql:row-results>
> >     <first-level>
> >      <esql:get-columns/>
> >     </first-level>
> >    </esql:row-results>
      </esql:results>

> >    <esql:no-results>
> >     <user>no Values available</user>
> >    </esql:no-results>

> >    <footer>copyright</footer>

> >  </esql:execute-query>
> > </esql:connection>
--
Torsten


---------------------------------------------------------------------
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