Return-Path:
Delivered-To: apmail-cocoon-cvs-archive@www.apache.org
Received: (qmail 65829 invoked from network); 3 May 2005 18:53:50 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199)
by minotaur.apache.org with SMTP; 3 May 2005 18:53:50 -0000
Received: (qmail 31608 invoked by uid 500); 3 May 2005 18:24:33 -0000
Delivered-To: apmail-cocoon-cvs-archive@cocoon.apache.org
Received: (qmail 31526 invoked by uid 500); 3 May 2005 18:24:32 -0000
Mailing-List: contact cvs-help@cocoon.apache.org; run by ezmlm
Precedence: bulk
Reply-To: dev@cocoon.apache.org
list-help:
list-unsubscribe:
List-Post:
Delivered-To: mailing list cvs@cocoon.apache.org
Received: (qmail 31417 invoked by uid 99); 3 May 2005 18:24:29 -0000
X-ASF-Spam-Status: No, hits=0.2 required=10.0
tests=NO_REAL_NAME
X-Spam-Check-By: apache.org
Received: from minotaur.apache.org (HELO minotaur.apache.org)
(209.237.227.194)
by apache.org (qpsmtpd/0.28) with SMTP; Tue, 03 May 2005 11:24:07 -0700
Received: (qmail 51223 invoked by uid 65534); 3 May 2005 18:22:18 -0000
Message-ID: <20050503182218.51222.qmail@minotaur.apache.org>
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Subject: svn commit: r167951 - in /cocoon/branches/BRANCH_2_1_X/src/blocks:
databases/ databases/conf/ databases/samples/ databases/samples/mod-db/
databases/samples/org-db/ databases/samples/stylesheets/
databases/samples/transform/ databases/samples/xsp/ hsqldb/ hsqldb/conf/
hsqldb/samples/
Date: Tue, 03 May 2005 18:22:15 -0000
To: cvs@cocoon.apache.org
From: vgritsenko@apache.org
X-Mailer: svnmailer-1.0.0-dev
X-Virus-Checked: Checked
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N
Author: vgritsenko
Date: Tue May 3 11:22:14 2005
New Revision: 167951
URL: http://svn.apache.org/viewcvs?rev=3D167951&view=3Drev
Log:
Remove duplicate HSQLDB database from databases block.
Remove duplicate samples schema from databases block.
Link samples to samples schema in hsqldb block.
Fix namespaces in sql transformer example.
Added:
cocoon/branches/BRANCH_2_1_X/src/blocks/hsqldb/build.xml
- copied, changed from r165647, cocoon/branches/BRANCH_2_1_X/src/bloc=
ks/databases/build.xml
cocoon/branches/BRANCH_2_1_X/src/blocks/hsqldb/conf/cocoondb.properties
- copied unchanged from r165647, cocoon/branches/BRANCH_2_1_X/src/blo=
cks/hsqldb/samples/WEB-INF/db/cocoondb.properties
cocoon/branches/BRANCH_2_1_X/src/blocks/hsqldb/conf/cocoondb.script
- copied, changed from r165647, cocoon/branches/BRANCH_2_1_X/src/bloc=
ks/hsqldb/samples/WEB-INF/db/cocoondb.script
cocoon/branches/BRANCH_2_1_X/src/blocks/hsqldb/conf/schema.sql
- copied, changed from r165647, cocoon/branches/BRANCH_2_1_X/src/bloc=
ks/hsqldb/samples/WEB-INF/db/tutorial.sql
Removed:
cocoon/branches/BRANCH_2_1_X/src/blocks/databases/build.xml
cocoon/branches/BRANCH_2_1_X/src/blocks/databases/conf/cocoondb.propert=
ies
cocoon/branches/BRANCH_2_1_X/src/blocks/databases/conf/cocoondb.script
cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/transform/sql=
-page.xml.sql
cocoon/branches/BRANCH_2_1_X/src/blocks/hsqldb/samples/
Modified:
cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/mod-db/edit-g=
roups.xsp
cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/mod-db/file-u=
pload-blob.xsp
cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/mod-db/schema=
.sql
cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/mod-db/user-l=
ist.xsp
cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/org-db/add-de=
partment.xsp
cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/org-db/add-em=
ployee.xsp
cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/org-db/employ=
ee.xsp
cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/org-db/proces=
s-department.xsp
cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/org-db/proces=
s-employee.xsp
cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/org-db/sitema=
p=2Exmap
cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/sitemap.xmap
cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/stylesheets/s=
ql2html.xsl
cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/transform/sit=
emap.xmap
cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/transform/sql=
-page.xml
cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/xsp/esql.xsp
Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/mod-db/=
edit-groups.xsp
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/blocks/=
databases/samples/mod-db/edit-groups.xsp?rev=3D167951&r1=3D167950&r2=3D1679=
51&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/mod-db/edit-g=
roups.xsp (original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/mod-db/edit-g=
roups.xsp Tue May 3 11:22:14 2005
@@ -15,32 +15,29 @@
limitations under the License.
-->
=20
-
-
+ xmlns:esql=3D"http://apache.org/cocoon/SQL/v2"
+ xmlns:xsp-request=3D"http://apache.org/xsp/request/2.0">
+
java.util.Enumeration
- =20
+
Descriptor
- Schema
+ SchemaActionsESQL
=20
edit-groups
- =20
+
=20
personnel
- =20
+
String user =3D ;
if ( user =3D=3D null ) {
@@ -71,7 +68,7 @@
- } =20
+ }
=20
=20
@@ -129,7 +126,7 @@
select gid, gname from user_=
groups, groups where user_groups.gid =3D groups.gid and uid=3Duid order by gname
-
@@ -173,7 +170,7 @@
select gid, gname from group=
s where gid not in (select gid from user_groups where uid=3Duid) order by gname
-
Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/mod-db/=
file-upload-blob.xsp
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/blocks/=
databases/samples/mod-db/file-upload-blob.xsp?rev=3D167951&r1=3D167950&r2=
=3D167951&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/mod-db/file-u=
pload-blob.xsp (original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/mod-db/file-u=
pload-blob.xsp Tue May 3 11:22:14 2005
@@ -24,11 +24,11 @@
java.util.Enumeration
- =20
+
Descriptor
- Schema
+ SchemaActionsESQL
@@ -36,12 +36,12 @@
file-upload-blob
=20
=20
+ -->
personnel
- =20
+
select media.id from media
@@ -53,17 +53,17 @@
no images yet
- =20
+
=20
Upload Media
-
What's happening? This example interacts with a simple database =
schema, set up by=20
- default in the sample "personnel" hsql database installed with the d=
atabase block. There=20
- is one table "media" with two fields: a primary key, and a binary fi=
eld "image". =20
- When a file upload is received from the simple form on this page, th=
e modular db action=20
+
What's happening? This example interacts with a simple database =
schema, set up by
+ default in the sample "personnel" hsql database installed with the d=
atabase block. There
+ is one table "media" with two fields: a primary key, and a binary fi=
eld "image".
+ When a file upload is received from the simple form on this page, th=
e modular db action
auto increments the primary key, and loads the binary file contents =
into the column (declared
as type=3D"binary" in database.xml). That's it.
-
Additionally, when this page is loaded, esql queries the media ta=
ble and places an image tag=20
- for each row, using "primarykeyvalue".jpg for the src. The sitemap =
is configured to serve=20
+
Additionally, when this page is loaded, esql queries the media ta=
ble and places an image tag
+ for each row, using "primarykeyvalue".jpg for the src. The sitemap =
is configured to serve
*.jpg using the database reader (declared in the root database samples =
sitemap) which simply
retrieves the binary data from the database and streams it to the brows=
er.
The intention is to factor out those parts that are dependent on
the utilised DBMS as well as the methods used to obtain the values
@@ -50,7 +46,7 @@
=20
Input Modules read data from some source (e.g. the request
- object or session attributes or whatever)
=20
+ object or session attributes or whatever)
=20
Output Modules send the data to an arbitrary
destination. Again, this could be request attributes or
@@ -71,16 +67,16 @@
=20
Current database content
=20
- =20
+ personnel
- =20
+
select * from user order by name, firstname, una=
me, uid
- =20
+
@@ -106,7 +102,7 @@
- =20
+
@@ -136,7 +132,7 @@
select gid, gname from groups order by g=
name
-
@@ -146,7 +142,7 @@
- =20
+