home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-cocoon-addon-1.4.9-installer.exe / remove.xsp < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  2.0 KB  |  59 lines

  1. <?xml version="1.0"?>
  2. <!--
  3.   Copyright 1999-2004 The Apache Software Foundation
  4.  
  5.   Licensed under the Apache License, Version 2.0 (the "License");
  6.   you may not use this file except in compliance with the License.
  7.   You may obtain a copy of the License at
  8.  
  9.       http://www.apache.org/licenses/LICENSE-2.0
  10.  
  11.   Unless required by applicable law or agreed to in writing, software
  12.   distributed under the License is distributed on an "AS IS" BASIS,
  13.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.   See the License for the specific language governing permissions and
  15.   limitations under the License.
  16. -->
  17.  
  18. <!--
  19.     XSP event-based cache sample.
  20.  
  21.     Cvs $Id: remove.xsp,v 1.3 2004/04/05 12:25:30 antonio Exp $
  22.  -->
  23.  
  24.  
  25. <xsp:page language="java"
  26.           xmlns:xsp="http://apache.org/xsp"
  27.           xmlns:esql="http://apache.org/cocoon/SQL/v2"
  28.           xmlns:xsp-request="http://apache.org/xsp/request/2.0">
  29.  
  30.     <page>
  31.         <title>Uninstall Database Triggers with HSQLDB</title>
  32.         <para>This page tries to remove triggers with the demo database that
  33.               comes with Apache Cocoon.</para>
  34.         <esql:connection>
  35.             <esql:pool>personnel</esql:pool>
  36.  
  37.         <xsp:logic>
  38.             for (int i = 0; i<3; i++) {
  39.  
  40.               <para>Removing myTrigger<xsp:expr>i</xsp:expr>.</para>
  41.               <esql:execute-query>
  42.                 <esql:query>drop trigger myTrigger<xsp:expr>i</xsp:expr></esql:query>
  43.                 <esql:error-results>
  44.                   <para>Failed installing myTrigger<xsp:expr>i</xsp:expr>: <esql:get-message/></para>
  45.                   <para>Trigger already removed?</para>
  46.                 </esql:error-results>
  47.               </esql:execute-query>
  48.             }
  49.         </xsp:logic>
  50.         </esql:connection>
  51.  
  52.         <para>
  53.             <a href="install?what=http">Install HTTP triggers</a>,
  54.             <a href="install?what=jms">Install JMS triggers</a>,
  55.             or go back to <a href="eventcache">sample page.</a></para>
  56.     </page>
  57.  
  58. </xsp:page>
  59.