You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2002/08/13 16:04:16 UTC
cvs commit: xml-cocoon2/src/webapp/samples/authentication sitemap.xmap
cziegeler 2002/08/13 07:04:16
Modified: src/java/org/apache/cocoon/components/treeprocessor/sitemap
RedirectToURINode.java
src/webapp/WEB-INF cocoon.xconf
src/webapp/samples/authentication sitemap.xmap
Log:
Fixing authentication sample and removing optional xmldb configuration from the default conf
Revision Changes Path
1.4 +4 -3 xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/sitemap/RedirectToURINode.java
Index: RedirectToURINode.java
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/sitemap/RedirectToURINode.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- RedirectToURINode.java 24 Jun 2002 20:32:19 -0000 1.3
+++ RedirectToURINode.java 13 Aug 2002 14:04:15 -0000 1.4
@@ -78,6 +78,7 @@
public RedirectToURINode(VariableResolver uri, boolean keepSession) throws PatternException {
this.uri = uri;
+ this.keepSession = keepSession;
}
public final boolean invoke(Environment env, InvokeContext context)
@@ -87,9 +88,9 @@
if (getLogger().isInfoEnabled()) {
getLogger().info("Redirecting to '" + resolvedURI + "' at " + this.getLocation());
}
-
+System.out.println("Redirecting to: " + resolvedURI);
PipelinesNode.getRedirector(env).redirect(this.keepSession, resolvedURI);
-
+System.out.println("Redirected and finish.");
return true;
}
}
1.35 +1 -9 xml-cocoon2/src/webapp/WEB-INF/cocoon.xconf
Index: cocoon.xconf
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/webapp/WEB-INF/cocoon.xconf,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- cocoon.xconf 12 Aug 2002 22:31:56 -0000 1.34
+++ cocoon.xconf 13 Aug 2002 14:04:15 -0000 1.35
@@ -148,15 +148,7 @@
<!-- file protocol : this is a WriteableSource -->
<protocol class="org.apache.cocoon.components.source.FileSourceFactory" name="file"/>
-
-
- <!-- xmldb pseudo protocol -->
- <protocol class="org.apache.cocoon.components.source.XMLDBSourceFactory" name="xmldb">
- <!-- Xindice driver -->
- <driver class="org.apache.xindice.client.xmldb.DatabaseImpl" type="xindice"/>
- <!-- Add here other XML:DB compliant databases drivers -->
- </protocol>
-</source-handler>
+ </source-handler>
<!-- Source Factories
Each source factory adds a special uri protocol to the system.
1.2 +1 -1 xml-cocoon2/src/webapp/samples/authentication/sitemap.xmap
Index: sitemap.xmap
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/webapp/samples/authentication/sitemap.xmap,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sitemap.xmap 13 Jun 2002 10:31:23 -0000 1.1
+++ sitemap.xmap 13 Aug 2002 14:04:16 -0000 1.2
@@ -56,7 +56,7 @@
<!-- try to login -->
<map:act type="auth-login">
<map:parameter name="handler" value="demohandler"/>
- <map:parameter name="parameter_name" value="request:username"/>
+ <map:parameter name="parameter_name" value="{request:username}"/>
<map:redirect-to uri="protected"/>
</map:act>
<!-- something was wrong, try it again -->
----------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org