cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r720182 - /cocoon/trunk/core/cocoon-sitemap/cocoon-sitemap-components/src/main/java/org/apache/cocoon/selection/XPathExceptionSelector.java
Date Mon, 24 Nov 2008 12:46:38 GMT
Author: felixk
Date: Mon Nov 24 04:46:38 2008
New Revision: 720182

URL: http://svn.apache.org/viewvc?rev=720182&view=rev
Log:
Fix documentation. Attribute is 'name' instead of 'type', add part where the configuration
has to be put in the sitemap.xmap

Modified:
    cocoon/trunk/core/cocoon-sitemap/cocoon-sitemap-components/src/main/java/org/apache/cocoon/selection/XPathExceptionSelector.java

Modified: cocoon/trunk/core/cocoon-sitemap/cocoon-sitemap-components/src/main/java/org/apache/cocoon/selection/XPathExceptionSelector.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-sitemap/cocoon-sitemap-components/src/main/java/org/apache/cocoon/selection/XPathExceptionSelector.java?rev=720182&r1=720181&r2=720182&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-sitemap/cocoon-sitemap-components/src/main/java/org/apache/cocoon/selection/XPathExceptionSelector.java
(original)
+++ cocoon/trunk/core/cocoon-sitemap/cocoon-sitemap-components/src/main/java/org/apache/cocoon/selection/XPathExceptionSelector.java
Mon Nov 24 04:46:38 2008
@@ -37,13 +37,18 @@
  *
  * <p>Example configuration :
  * <pre>
- *   &lt;map:selector type="error" src="....XPathExceptionSelector">
- *     &lt;exception name="denied" class="my.comp.auth.AuthenticationFailure">
- *       &lt;xpath name="PasswordWrong" test="authCode=10"/>
- *       &lt;xpath name="PasswordExpired" test="errorCode=11"/>
- *       &lt;xpath name="AccessForbidden" test="errorCode&gt;11"/>
- *     &lt;/exception>
- *   &lt;/map:selector>
+ *   &lt;map:components>
+ *     &lt;map:selectors>
+ *        ...
+ *       &lt;map:selector name="error" src="org.apache.cocoon.selection.XPathExceptionSelector">
+ *         &lt;exception name="denied" class="my.comp.auth.AuthenticationFailure">
+ *           &lt;xpath name="PasswordWrong" test="authCode=10"/>
+ *           &lt;xpath name="PasswordExpired" test="errorCode=11"/>
+ *           &lt;xpath name="AccessForbidden" test="errorCode&gt;11"/>
+ *         &lt;/exception>
+ *       &lt;/map:selector>
+ *     &lt;/map:selectory>
+ *   &lt;/components>
  * </pre>
  * This example shows several features:
  * <ul>



Mime
View raw message