cziegeler 2002/06/25 02:32:48 Modified: src/webapp/samples/mod-db sitemap.xmap src/webapp/samples/protected sitemap.xmap Log: Avoid usage of context: . Now these samples are relocatible Revision Changes Path 1.2 +3 -3 xml-cocoon2/src/webapp/samples/mod-db/sitemap.xmap Index: sitemap.xmap =================================================================== RCS file: /home/cvs/xml-cocoon2/src/webapp/samples/mod-db/sitemap.xmap,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- sitemap.xmap 24 Jun 2002 10:44:32 -0000 1.1 +++ sitemap.xmap 25 Jun 2002 09:32:48 -0000 1.2 @@ -32,7 +32,7 @@ <!-- declare actions for database operations --> <map:action name="mod-db-add" src="org.apache.cocoon.acting.modular.DatabaseAddAction"> - <descriptor>context://samples/mod-db/database.xml</descriptor> + <descriptor>database.xml</descriptor> <!-- shall we throw an exception in addition to rolling back the transaction when encountering an error during database ops? @@ -51,12 +51,12 @@ </map:action> <map:action name="mod-db-del" src="org.apache.cocoon.acting.modular.DatabaseDeleteAction"> - <descriptor>context://samples/mod-db/database.xml</descriptor> + <descriptor>database.xml</descriptor> <throw-exception>false</throw-exception> </map:action> <map:action name="mod-db-upd" src="org.apache.cocoon.acting.modular.DatabaseUpdateAction"> - <descriptor>context://samples/mod-db/database.xml</descriptor> + <descriptor>database.xml</descriptor> <throw-exception>false</throw-exception> </map:action> 1.2 +3 -3 xml-cocoon2/src/webapp/samples/protected/sitemap.xmap Index: sitemap.xmap =================================================================== RCS file: /home/cvs/xml-cocoon2/src/webapp/samples/protected/sitemap.xmap,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- sitemap.xmap 24 Jun 2002 10:44:32 -0000 1.1 +++ sitemap.xmap 25 Jun 2002 09:32:48 -0000 1.2 @@ -55,11 +55,11 @@ <map:match pattern="do-login"> <!-- first validate whether submitted values are ok --> <map:act type="form-validator"> - <map:parameter name="descriptor" value="context://samples/protected/descriptors/params.xml"/> + <map:parameter name="descriptor" value="descriptors/params.xml"/> <map:parameter name="validate" value="username"/> <!-- now try to log in --> <map:act type="db-authenticator"> - <map:parameter name="descriptor" value="context://samples/protected/descriptors/auth.xml"/> + <map:parameter name="descriptor" value="descriptors/auth.xml"/> <!-- now go to protected area --> <map:redirect-to uri="protected"/> </map:act> @@ -74,7 +74,7 @@ <map:match pattern="protected"> <!-- first validate whether user has logged in --> <map:act type="session-validator"> - <map:parameter name="descriptor" value="context://samples/protected//descriptors/params.xml"/> + <map:parameter name="descriptor" value="descriptors/params.xml"/> <map:parameter name="validate" value="username,department_id,theme"/> <!-- generate protected content --> <map:generate type="serverpages" src="docs/protected.xsp"/>
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]