cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ba...@locus.apache.org
Subject cvs commit: xml-cocoon/samples/sql taglib.xml database-page.xml
Date Tue, 04 Apr 2000 15:55:50 GMT
balld       00/04/04 08:55:50

  Modified:    samples/sql database-page.xml
  Added:       samples/sql taglib.xml
  Log:
  Duh, this should have been in long ago.
  
  Revision  Changes    Path
  1.2       +4 -5      xml-cocoon/samples/sql/database-page.xml
  
  Index: database-page.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/samples/sql/database-page.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- database-page.xml	1999/11/30 16:30:01	1.1
  +++ database-page.xml	2000/04/04 15:55:49	1.2
  @@ -1,21 +1,20 @@
   <?xml version="1.0"?>
   
   <?cocoon-process type="sql"?>
  -<?cocoon-format type="text/xml"?>
   
   <page>
   
    <connectiondefs>
     <connection name="foo_connection">
      <driver>org.gjt.mm.mysql.Driver</driver>
  -   <dburl>jdbc:mysql://mysql.example.com/foo_database</dburl>
  -   <username>foo_user</username>
  -   <password>foo_password</password>
  +   <dburl>jdbc:mysql://localhost/test</dburl>
  +   <!--<username>foo_user</username>
  +   <password>foo_password</password>-->
     </connection>
    </connectiondefs> 
    
    <query connection="foo_connection">
  -  select name,number,message from foo_table order by name
  +  select * from foo_table
    </query>
    
   </page>
  
  
  
  1.1                  xml-cocoon/samples/sql/taglib.xml
  
  Index: taglib.xml
  ===================================================================
  <?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"
  >
  
    <page title="SQL Search Results">
  
    	<sql:execute-query>
  		<sql:driver>org.gjt.mm.mysql.Driver</sql:driver>
  		<sql:dburl>jdbc:mysql://localhost/test</sql:dburl>
  		<sql:doc-element>options</sql:doc-element>
  		<sql:row-element>option</sql:row-element>
  		<sql:tag-case>lower</sql:tag-case>
  		<sql:null-indicator>yes</sql:null-indicator>
  		<sql:id-attribute>ID</sql:id-attribute>
  		<sql:id-attribute-column>foo_id</sql:id-attribute-column>
  		<sql:error-element>sqlerror</sql:error-element>
  		<sql:error-message-attribute>message</sql:error-message-attribute>
  		<sql:error-stacktrace-attribute>stacktrace</sql:error-stacktrace-attribute>
  		<sql:error-message-text>A horrible error occured</sql:error-message-text>
  		<sql:query>select * from foo_table</sql:query>
  	</sql:execute-query>
  
    	<sql:execute-query>
  		<sql:driver>org.gjt.mm.mysql.Driver</sql:driver>
  		<sql:dburl>jdbc:mysql://localhost/test</sql:dburl>
  		<sql:doc-element>options</sql:doc-element>
  		<sql:row-element>option</sql:row-element>
  		<sql:tag-case>lower</sql:tag-case>
  		<sql:null-indicator>yes</sql:null-indicator>
  		<sql:id-attribute>ID</sql:id-attribute>
  		<sql:id-attribute-column>foo_id</sql:id-attribute-column>
  		<sql:max-rows>10</sql:max-rows>
  		<sql:skip-rows>0</sql:skip-rows>
  		<sql:error-element>sqlerror</sql:error-element>
  		<sql:error-message-attribute>message</sql:error-message-attribute>
  		<sql:error-stacktrace-attribute>stacktrace</sql:error-stacktrace-attribute>
  		<sql:error-message-text>A horrible error occured</sql:error-message-text>
  		<sql:query>select * from foo_table where foo_id = <xsp:expr>request.getParameter("id")</xsp:expr></sql:query>
  	</sql:execute-query>
  
    </page>
  
  </xsp:page>
  
  
  

Mime
View raw message