cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "馬旭" <m...@cobalt.co.jp>
Subject Display nothing
Date Wed, 06 Dec 2000 08:31:04 GMT
Hi there,

I got a same problem with Mr.Christof Schneider. When I tried to use the SQL
Taglib, everything is very well with the following source:

<?xml version="1.0"?>

<?cocoon-process type="xsp"?>

<xsp:page
  language="java"
  xmlns:sql="http://www.apache.org/1999/SQL"
  xmlns:xsp="http://www.apache.org/1999/XSP/Core"
  xmlns:request="http://www.apache.org/1999/XSP/Request"
>

  <page title="SQL Search Results">
   <sql:execute-query>
  <!--<sql:use-connection>testweb3d</sql:use-connection>-->
  <sql:driver>sun.jdbc.odbc.JdbcOdbcDriver</sql:driver>
  <sql:dburl>jdbc:odbc:testweb3d</sql:dburl>
     <sql:username>testweb3d</sql:username>
     <sql:password>testweb3d</sql:password>
  <sql:query>select * from TABLE1 </sql:query>
 </sql:execute-query>

  </page>
</xsp:page>

but when I tried to adjust the esql example I use the following source

<?xml version="1.0"?>

<?cocoon-process type="xsp"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet type="text/xsl" href="esql.xsl"?>

<xsp:page language="java"
  xmlns:xsp="http://www.apache.org/1999/XSP/Core"
  xmlns:esql="http://apache.org/cocoon/SQL/v2">

<page>

<esql:connection>
  <esql:driver>sun.jdbc.odbc.JdbcOdbcDriver</esql:driver>
  <esql:dburl>jdbc:odbc:testweb3d</esql:dburl>
  <esql:username>testweb3d</esql:username>
  <esql:password>testweb3d</esql:password>
  <esql:execute-query>
    <esql:query>select * from TABLE1</esql:query>
    <esql:results>
      <header>header info</header>
      <esql:row-results>
        <department>
          <id><esql:get-int column="id"/></id>
          <name><esql:get-string column="name"/></name>
        </department>
      </esql:row-results>
      <footer>footer info</footer>
    </esql:results>
  </esql:execute-query>
</esql:connection>

</page>

</xsp:page>

the page display nothing, who can help me?

Ma Xu
maxu@cobalt.co.jp



Mime
View raw message