ghoward 2004/02/07 07:02:11
Modified: src/webapp/samples/xsp/java simple.xsp
Log:
Add use of input module logicsheet to simple xsp sample.
Revision Changes Path
1.2 +10 -2 cocoon-2.1/src/webapp/samples/xsp/java/simple.xsp
Index: simple.xsp
===================================================================
RCS file: /home/cvs//cocoon-2.1/src/webapp/samples/xsp/java/simple.xsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- simple.xsp 7 Sep 2003 06:09:10 -0000 1.1
+++ simple.xsp 7 Feb 2004 15:02:11 -0000 1.2
@@ -6,7 +6,8 @@
xmlns:xsp="http://apache.org/xsp"
xmlns:xsp-request="http://apache.org/xsp/request/2.0"
xmlns:log="http://apache.org/xsp/log/2.0"
- xmlns:capture="http://apache.org/cocoon/capture/1.0">
+ xmlns:capture="http://apache.org/cocoon/capture/1.0"
+ xmlns:input="http://apache.org/cocoon/xsp/input/1.0">
<page>
<log:logger name="xsp-sample" filename="xsp-sample.log"/>
@@ -80,6 +81,13 @@
Header "user-agent" as String:
<xsp-request:get-header name="user-agent"/>
</para>
+
+ <para>
+ Access to input modules configured in cocoon.xconf:
+ <input:get-attribute module="cocoon-properties" name="fullname"/>
+ <input:get-attribute module="cocoon-properties" name="version"/>
+ </para>
+
<xsp-request:get-header-names/>