cvs commit: xml-cocoon2/src/java/org/apache/cocoon/environment/http HttpEnvironment.java

2003-02-01 Thread stephan
stephan 2003/02/01 09:09:18

  Modified:src/java/org/apache/cocoon/environment/http
HttpEnvironment.java
  Log:
  For a null mime-type, the enviroment is able to retrieve the
  mime-type from the context. This is important for choosing
  the right xmlizer/parser.
  
  Revision  ChangesPath
  1.23  +18 -2 
xml-cocoon2/src/java/org/apache/cocoon/environment/http/HttpEnvironment.java
  
  Index: HttpEnvironment.java
  ===
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/environment/http/HttpEnvironment.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- HttpEnvironment.java  31 Jan 2003 22:51:45 -  1.22
  +++ HttpEnvironment.java  1 Feb 2003 17:09:18 -   1.23
  @@ -51,12 +51,14 @@
   package org.apache.cocoon.environment.http;
   
   import org.apache.cocoon.Constants;
  +import org.apache.cocoon.ProcessingException;
   import org.apache.cocoon.components.request.RequestFactory;
   import org.apache.cocoon.environment.AbstractEnvironment;
   import org.apache.cocoon.environment.ObjectModelHelper;
   import org.apache.cocoon.environment.Redirector;
   import org.apache.cocoon.environment.Session;
   import org.apache.cocoon.util.NetUtils;
  +import org.apache.cocoon.components.source.SourceUtil;
   
   import javax.servlet.ServletContext;
   import javax.servlet.http.HttpServletRequest;
  @@ -67,6 +69,9 @@
   import java.net.URL;
   import java.util.Enumeration;
   
  +import org.xml.sax.ContentHandler;
  +import org.xml.sax.SAXException;
  +
   /**
* @author ?
* @version CVS $Id$
  @@ -288,5 +293,16 @@
   }
   return true;
   }
  -
  +
  +
  +public void toSAX( org.apache.excalibur.source.Source source,
  +String mimeTypeHint,
  +ContentHandler handler )
  +throws SAXException, IOException, ProcessingException {
  +// Allow to retrieve the mime-type from the context.
  +if (mimeTypeHint==null)
  +  super.toSAX(source, 
webcontext.getMimeType(SourceUtil.getPath(source.getURI())), handler);
  +else
  +  super.toSAX(source, mimeTypeHint, handler);
  +}
   }
  
  
  

--
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail:  [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




cvs commit: xml-cocoon2/src/java/org/apache/cocoon/environment/http HttpEnvironment.java

2002-12-18 Thread cziegeler
cziegeler2002/12/18 00:25:12

  Modified:src/java/org/apache/cocoon/reading Tag: cocoon_2_0_3_branch
ResourceReader.java
   .Tag: cocoon_2_0_3_branch changes.xml
   src/java/org/apache/cocoon/environment/http Tag:
cocoon_2_0_3_branch HttpEnvironment.java
  Log:
  Fixing bug 12915

  The resource reader now checks if for the same URI the same source is read
  in order to test the if-last-modified header. This behaviour can be turned
  of (for more performance) by the quick-modified-test.

  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.7.2.3   +37 -9 
xml-cocoon2/src/java/org/apache/cocoon/reading/ResourceReader.java
  
  Index: ResourceReader.java
  ===
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/reading/ResourceReader.java,v
  retrieving revision 1.7.2.2
  retrieving revision 1.7.2.3
  diff -u -r1.7.2.2 -r1.7.2.3
  --- ResourceReader.java   5 Jun 2002 01:36:11 -   1.7.2.2
  +++ ResourceReader.java   18 Dec 2002 08:25:11 -  1.7.2.3
  @@ -50,6 +50,10 @@
   */
   package org.apache.cocoon.reading;
   
  +import java.io.IOException;
  +import java.io.InputStream;
  +import java.util.HashMap;
  +import java.util.Map;
   import org.apache.avalon.framework.parameters.Parameters;
   import org.apache.cocoon.ProcessingException;
   import org.apache.cocoon.caching.CacheValidity;
  @@ -57,17 +61,13 @@
   import org.apache.cocoon.caching.TimeStampCacheValidity;
   import org.apache.cocoon.environment.Context;
   import org.apache.cocoon.environment.ObjectModelHelper;
  +import org.apache.cocoon.environment.Request;
   import org.apache.cocoon.environment.Response;
   import org.apache.cocoon.environment.Source;
   import org.apache.cocoon.environment.SourceResolver;
   import org.apache.cocoon.util.HashUtil;
   import org.xml.sax.SAXException;
   
  -import java.io.IOException;
  -import java.io.InputStream;
  -import java.util.Date;
  -import java.util.Map;
  -
   /**
* The ResourceReader component is used to serve binary data
* in a sitemap pipeline. It makes use of HTTP Headers to determine if
  @@ -81,19 +81,30 @@
*   in miliseconds the resources can be cached by any proxy or browser
*   between Cocoon2 and the requesting visitor.
*   
  + * 
  + *   This parameter is optional. This boolean parameter controlls the
  + *   last modified test. If set to true (default is false), only the
  + *   last modified of the current source is tested, but not if the
  + *   same source is used as last time.
  + *   
*   
*
* @author mailto:[EMAIL PROTECTED]";>Giacomo Pati
* @version CVS $Id$
*/
  -public class ResourceReader
  +public final class ResourceReader
 extends AbstractReader
 implements Cacheable {
   
   /** The  source */
   private Source  inputSource;
   
  -
  +/** The list of generated documents */
  +private static final Map documents = new HashMap();
  +
  +/** quick test */
  +private boolean quickTest;
  +
   /**
* Setup the reader.
* The resource is opened to get an InputStream,
  @@ -102,6 +113,7 @@
   public void setup(SourceResolver resolver, Map objectModel, String src, 
Parameters par)
   throws ProcessingException, SAXException, IOException {
   super.setup(resolver, objectModel, src, par);
  +this.quickTest = par.getParameterAsBoolean("quick-modified-test", false);
   this.inputSource = this.resolver.resolve(super.source);
   }
   
  @@ -144,7 +156,17 @@
* possible to detect
*/
   public long getLastModified() {
  -return this.inputSource.getLastModified();
  + if (this.quickTest) {
  + return this.inputSource.getLastModified();
  + }
  +final Request request = ObjectModelHelper.getRequest(this.objectModel);
  +final String systemId = (String)documents.get(request.getRequestURI());
  +if (this.inputSource.getSystemId().equals(systemId)) {
  +return this.inputSource.getLastModified();
  +} else {
  + documents.remove(request.getRequestURI());
  + return 0;
  +}
   }
   
   /**
  @@ -180,6 +202,12 @@
   inputStream.close();
   inputStream = null;
   out.flush();
  +
  +if (!this.quickTest) {
  +// if everything is ok, add this to the list of generated documents
  +final Request request = ObjectModelHelper.getRequest(this.objectModel);
  +documents.put(request.getRequestURI(), this.inputSource.getSystemId());
  +}
   }
   
   /**
  
  
  
  No   revision
  
  
  No  

cvs commit: xml-cocoon2/src/java/org/apache/cocoon/environment/http HttpEnvironment.java

2002-12-05 Thread cziegeler
cziegeler2002/12/05 02:25:52

  Modified:src/java/org/apache/cocoon/components/treeprocessor/sitemap
MountNode.java SwitchSelectNode.java
MatchNodeBuilder.java HandleErrorsNode.java
ReadNode.java ReadNodeBuilder.java CallNode.java
SitemapNodeBuilder.java PreparableMatchNode.java
RedirectToURINode.java ScriptNode.java
TransformNodeBuilder.java FlowNode.java
SelectNodeBuilder.java RedirectToNodeBuilder.java
SerializeNodeBuilder.java GenerateNodeBuilder.java
MatchNode.java SelectNode.java
MountNodeBuilder.java SitemapLanguage.java
TransformNode.java PipelinesNodeBuilder.java
ViewNodeBuilder.java
   src/java/org/apache/cocoon/environment/commandline
AbstractCommandLineEnvironment.java
   src/java/org/apache/cocoon/components/treeprocessor/variables
NOPVariableResolver.java
PreparedVariableResolver.java VariableResolver.java
VariableResolverFactory.java
   src/java/org/apache/cocoon/environment/http
HttpEnvironment.java
  Log:
  Removing unused imports
  
  Revision  ChangesPath
  1.9   +7 -4  
xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/sitemap/MountNode.java
  
  Index: MountNode.java
  ===
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/sitemap/MountNode.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- MountNode.java12 Oct 2002 05:11:39 -  1.8
  +++ MountNode.java5 Dec 2002 10:25:51 -   1.9
  @@ -55,12 +55,15 @@
   import org.apache.avalon.framework.component.Composable;
   import org.apache.cocoon.components.pipeline.ProcessingPipeline;
   import org.apache.cocoon.components.treeprocessor.AbstractProcessingNode;
  -import org.apache.cocoon.components.treeprocessor.TreeProcessor;
   import org.apache.cocoon.components.treeprocessor.InvokeContext;
  +import org.apache.cocoon.components.treeprocessor.TreeProcessor;
   import org.apache.cocoon.components.treeprocessor.variables.VariableResolver;
   import org.apache.cocoon.environment.Environment;
  -import org.apache.cocoon.sitemap.PatternException;
  -import java.util.*;
  +
  +import java.util.HashMap;
  +import java.util.Iterator;
  +import java.util.List;
  +import java.util.Map;
   
   /**
*
  
  
  
  1.6   +5 -12 
xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/sitemap/SwitchSelectNode.java
  
  Index: SwitchSelectNode.java
  ===
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/sitemap/SwitchSelectNode.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- SwitchSelectNode.java 12 Oct 2002 05:11:39 -  1.5
  +++ SwitchSelectNode.java 5 Dec 2002 10:25:51 -   1.6
  @@ -51,28 +51,21 @@
   package org.apache.cocoon.components.treeprocessor.sitemap;
   
   import org.apache.avalon.framework.activity.Disposable;
  -import org.apache.avalon.framework.component.Component;
   import org.apache.avalon.framework.component.ComponentException;
   import org.apache.avalon.framework.component.ComponentManager;
   import org.apache.avalon.framework.component.ComponentSelector;
   import org.apache.avalon.framework.component.Composable;
   import org.apache.avalon.framework.parameters.Parameters;
  -import org.apache.avalon.framework.thread.ThreadSafe;
  -
  -import org.apache.cocoon.environment.Environment;
  -
  -import org.apache.cocoon.selection.Selector;
  -import org.apache.cocoon.selection.SwitchSelector;
  -
  -import org.apache.cocoon.sitemap.PatternException;
  -
   import org.apache.cocoon.components.treeprocessor.InvokeContext;
   import org.apache.cocoon.components.treeprocessor.ParameterizableProcessingNode;
   import org.apache.cocoon.components.treeprocessor.ProcessingNode;
   import org.apache.cocoon.components.treeprocessor.SimpleSelectorProcessingNode;
   import org.apache.cocoon.components.treeprocessor.variables.VariableResolver;
  +import org.apache.cocoon.environment.Environment;
  +import org.apache.cocoon.selection.Selector;
  +import org.apache.cocoon.selection.SwitchSelector;
  +import org.apache.cocoon.sitemap.PatternException;
   
  -import java.util.List;
   import java.util.Map;
   
   /**
  
  
  
  1.8   +3 -8  
xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/sitemap/MatchNodeBuilder.java
  
  Index: MatchNodeBuilder.java
  ===
  RCS

cvs commit: xml-cocoon2/src/java/org/apache/cocoon/environment/http HttpEnvironment.java

2002-09-24 Thread ovidiu

ovidiu  2002/09/24 01:44:23

  Modified:src/java/org/apache/cocoon/environment/http
HttpEnvironment.java
  Log:
  Added "throws IOException" to tryResetResponse().
  
  Revision  ChangesPath
  1.17  +3 -2  
xml-cocoon2/src/java/org/apache/cocoon/environment/http/HttpEnvironment.java
  
  Index: HttpEnvironment.java
  ===
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/environment/http/HttpEnvironment.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- HttpEnvironment.java  23 Sep 2002 10:24:36 -  1.16
  +++ HttpEnvironment.java  24 Sep 2002 08:44:23 -  1.17
  @@ -262,7 +262,8 @@
*
* @return true if the response was successfully reset
*/
  -public boolean tryResetResponse() {
  +public boolean tryResetResponse()
  +throws IOException {
   if (!super.tryResetResponse()) {
   try {
   if (!this.response.isCommitted()) {
  
  
  

--
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail:  [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




cvs commit: xml-cocoon2/src/java/org/apache/cocoon/environment/http HttpEnvironment.java

2002-09-23 Thread cziegeler

cziegeler2002/09/23 05:16:53

  Modified:src/java/org/apache/cocoon/environment/http Tag:
cocoon_2_0_3_branch HttpEnvironment.java
  Log:
  Adding workaround for bug 12915
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.12.2.2  +6 -1  
xml-cocoon2/src/java/org/apache/cocoon/environment/http/HttpEnvironment.java
  
  Index: HttpEnvironment.java
  ===
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/environment/http/HttpEnvironment.java,v
  retrieving revision 1.12.2.1
  retrieving revision 1.12.2.2
  diff -u -r1.12.2.1 -r1.12.2.2
  --- HttpEnvironment.java  15 Jul 2002 14:42:49 -  1.12.2.1
  +++ HttpEnvironment.java  23 Sep 2002 12:16:53 -  1.12.2.2
  @@ -247,10 +247,15 @@
* environment is not able to test it
*/
   public boolean isResponseModified(long lastModified) {
  +// workaround for bug #12915
  +// FIXME
  +return true;
  +/*
   long if_modified_since = this.request.getDateHeader("If-Modified-Since");
   
   this.response.setDateHeader("Last-Modified", lastModified);
   return (if_modified_since < lastModified);
  +*/
   }
   
   /**
  
  
  

--
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail:  [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




cvs commit: xml-cocoon2/src/java/org/apache/cocoon/environment/http HttpEnvironment.java

2002-09-23 Thread cziegeler

cziegeler2002/09/23 03:24:36

  Modified:src/java/org/apache/cocoon/environment/http
HttpEnvironment.java
  Log:
  Simple workaround for bug 12915
  
  Revision  ChangesPath
  1.16  +6 -1  
xml-cocoon2/src/java/org/apache/cocoon/environment/http/HttpEnvironment.java
  
  Index: HttpEnvironment.java
  ===
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/environment/http/HttpEnvironment.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- HttpEnvironment.java  13 Sep 2002 06:46:29 -  1.15
  +++ HttpEnvironment.java  23 Sep 2002 10:24:36 -  1.16
  @@ -237,10 +237,15 @@
* environment is not able to test it
*/
   public boolean isResponseModified(long lastModified) {
  +// workaround for bug #12915
  +// FIXME
  +return true;
  +/*
   long if_modified_since = this.request.getDateHeader("If-Modified-Since");
   
   this.response.setDateHeader("Last-Modified", lastModified);
   return (if_modified_since < lastModified);
  +*/
   }
   
   /**
  
  
  

--
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail:  [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




cvs commit: xml-cocoon2/src/java/org/apache/cocoon/environment/http HttpEnvironment.java

2002-03-21 Thread vgritsenko

vgritsenko02/03/21 18:01:31

  Modified:src/java/org/apache/cocoon/environment/http
HttpEnvironment.java
  Log:
  Fix WebSphere encodeRedirectURL bug/feature.
  Works with and without PQ51545_eFix
  
  Revision  ChangesPath
  1.11  +12 -1 
xml-cocoon2/src/java/org/apache/cocoon/environment/http/HttpEnvironment.java
  
  Index: HttpEnvironment.java
  ===
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/environment/http/HttpEnvironment.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- HttpEnvironment.java  26 Feb 2002 12:41:39 -  1.10
  +++ HttpEnvironment.java  22 Mar 2002 02:01:31 -  1.11
  @@ -55,6 +55,7 @@
   import org.apache.cocoon.environment.ObjectModelHelper;
   import org.apache.cocoon.environment.Redirector;
   import org.apache.cocoon.environment.Session;
  +import org.apache.cocoon.util.NetUtils;
   
   import javax.servlet.ServletContext;
   import javax.servlet.http.HttpServletRequest;
  @@ -67,7 +68,7 @@
   
   /**
* @author ?
  - * @version CVS $Id: HttpEnvironment.java,v 1.10 2002/02/26 12:41:39 tcurdt Exp $
  + * @version CVS $Id: HttpEnvironment.java,v 1.11 2002/03/22 02:01:31 vgritsenko Exp 
$
*/
   public class HttpEnvironment extends AbstractEnvironment implements Redirector {
   
  @@ -176,6 +177,16 @@
   }
   // redirect
   String redirect = this.response.encodeRedirectURL(newURL);
  +
  +// FIXME (VG): WebSphere 4.0/4.0.1 bug
  +if (!newURL.startsWith("/") && newURL.indexOf(':') == -1 && 
redirect.indexOf(':') != -1) {
  +getLogger().debug("Redirect: WebSpehere Bug Detected!");
  +String base = NetUtils.getPath(request.getRequestURI());
  +if (base.startsWith("/")) {
  +base = base.substring(1);
  +}
  +redirect = response.encodeRedirectURL(base + '/' + newURL);
  +}
   
   getLogger().debug("Sending redirect to '" + redirect + "'");
   this.response.sendRedirect (redirect);
  
  
  

--
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail:  [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




cvs commit: xml-cocoon2/src/java/org/apache/cocoon/environment/http HttpEnvironment.java

2002-02-26 Thread tcurdt

tcurdt  02/02/26 04:41:39

  Modified:src/java/org/apache/cocoon/environment/http
HttpEnvironment.java
  Log:
  fixed the OutOfBoundsException
  
  Revision  ChangesPath
  1.10  +2 -2  
xml-cocoon2/src/java/org/apache/cocoon/environment/http/HttpEnvironment.java
  
  Index: HttpEnvironment.java
  ===
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/environment/http/HttpEnvironment.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- HttpEnvironment.java  22 Feb 2002 07:03:50 -  1.9
  +++ HttpEnvironment.java  26 Feb 2002 12:41:39 -  1.10
  @@ -67,7 +67,7 @@
   
   /**
* @author ?
  - * @version CVS $Id: HttpEnvironment.java,v 1.9 2002/02/22 07:03:50 cziegeler Exp $
  + * @version CVS $Id: HttpEnvironment.java,v 1.10 2002/02/26 12:41:39 tcurdt Exp $
*/
   public class HttpEnvironment extends AbstractEnvironment implements Redirector {
   
  @@ -136,7 +136,7 @@
 String name = (String)e.nextElement();
 if (name.startsWith(Constants.ACTION_PARAM_PREFIX)) {
   if (name.endsWith(".x") || name.endsWith(".y")) {
  -  return(name.substring(Constants.ACTION_PARAM_PREFIX.length(),-2));
  +  
return(name.substring(Constants.ACTION_PARAM_PREFIX.length(),name.length()-2));
   }
   else {
 return(name.substring(Constants.ACTION_PARAM_PREFIX.length()));
  
  
  

--
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail:  [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




cvs commit: xml-cocoon2/src/java/org/apache/cocoon/environment/http HttpEnvironment.java

2002-02-18 Thread tcurdt

tcurdt  02/02/18 06:44:01

  Modified:src/java/org/apache/cocoon/environment/http
HttpEnvironment.java
  Log:
  also support input type="image" buttons with the new cocoon-action syntax
  
  Revision  ChangesPath
  1.8   +7 -2  
xml-cocoon2/src/java/org/apache/cocoon/environment/http/HttpEnvironment.java
  
  Index: HttpEnvironment.java
  ===
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/environment/http/HttpEnvironment.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- HttpEnvironment.java  15 Feb 2002 10:27:34 -  1.7
  +++ HttpEnvironment.java  18 Feb 2002 14:44:00 -  1.8
  @@ -72,7 +72,7 @@
   
   /**
* @author ?
  - * @version CVS $Id: HttpEnvironment.java,v 1.7 2002/02/15 10:27:34 tcurdt Exp $
  + * @version CVS $Id: HttpEnvironment.java,v 1.8 2002/02/18 14:44:00 tcurdt Exp $
*/
   public class HttpEnvironment extends AbstractEnvironment implements Redirector {
   
  @@ -140,7 +140,12 @@
   for(Enumeration e = req.getParameterNames(); e.hasMoreElements(); ) {
 String name = (String)e.nextElement();
 if (name.startsWith(Constants.ACTION_PARAM_PREFIX)) {
  -return(name.substring(Constants.ACTION_PARAM_PREFIX.length()));
  +if (name.endsWith(".x") || name.endsWith(".y")) {
  +  return(name.substring(Constants.ACTION_PARAM_PREFIX.length(),-2));
  +}
  +else {
  +  return(name.substring(Constants.ACTION_PARAM_PREFIX.length()));
  +}
 }
   }
   return(null);
  
  
  

--
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail:  [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




cvs commit: xml-cocoon2/src/java/org/apache/cocoon/environment/http HttpEnvironment.java

2002-02-15 Thread tcurdt

tcurdt  02/02/15 02:27:34

  Modified:src/documentation/xdocs tutorial.xml
   src/documentation/xdocs/userdocs/concepts actions.xml
   src/java/org/apache/cocoon Constants.java
   src/webapp/docs/samples/forms employee.xsp
   src/webapp/tutorial/stylesheets apache.xsl
   src/java/org/apache/cocoon/environment/http
HttpEnvironment.java
  Log:
  introduced the new cocoon-action-ACTIONNAME syntax. the original cocoon-action
  syntax should be considered deprecated now since there are some i18n issues with it.
  (but it is still supported)
  
  Revision  ChangesPath
  1.2   +4 -4  xml-cocoon2/src/documentation/xdocs/tutorial.xml
  
  Index: tutorial.xml
  ===
  RCS file: /home/cvs/xml-cocoon2/src/documentation/xdocs/tutorial.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- tutorial.xml  3 Jan 2002 12:31:01 -   1.1
  +++ tutorial.xml  15 Feb 2002 10:27:33 -  1.2
  @@ -326,8 +326,8 @@
 ]]>
   
  It is important to note that the "submit" tag is transformed
  -  into an HTML submit button with the name "cocoon-action".
  -  The "cocoon-action" form parameter is a magic value that
  +  into an HTML submit button with the name 
"cocoon-action-ACTIONNAME".
  +  The "cocoon-action-ACTIONNAME" form parameter is a magic value 
that
 Cocoon uses to select a specific action from a group of actions that
 only gets executed during that time.  You will find that this page
 displays correctly, but does not do anything yet.  The handler is
  @@ -441,8 +441,8 @@
  Lastly, we want to create an action set.  An action set is a group of
 actions that will be applied at once.  If the action set entry has an
 "action" parameter, then the specific action is only
  -  executed when the magic "cocoon-action" request parameter
  -  matches the value of the "action" parameter.  For our
  +  executed when the ACTIONNAME of the magic 
"cocoon-action-ACTIONNAME"
  +  request parameter matches the value of the "action" parameter.  
For our
 purposes, the action set we are defining is listed below (defined in
 the sitemap):
   
  
  
  
  1.3   +9 -2  
xml-cocoon2/src/documentation/xdocs/userdocs/concepts/actions.xml
  
  Index: actions.xml
  ===
  RCS file: 
/home/cvs/xml-cocoon2/src/documentation/xdocs/userdocs/concepts/actions.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- actions.xml   15 Jan 2002 21:27:40 -  1.2
  +++ actions.xml   15 Feb 2002 10:27:33 -  1.3
  @@ -236,8 +236,15 @@
call an action only if the Environments getAction method returns
a String identical to the value supplied with an action attribute.
In the current implementation of the HttpEnvironment the value 
  - returned by the getAction method is determined by a http parameter 
  - called "cocoon-action".
  + returned by the getAction method is determined by a http request
  + parameter. The Environment looks for a request parameter with a 
  + prefix "cocoon-action-" followed by an action name.
  + 
  +
  + 
  + Please note: the orginal "cocoon-action" syntax is deprecated but still 
supported!
 Above we have seen that a successfully executed action
returns a Map object that can be used to communicate with the
sitemap. In case of an action set this is similar. With action
  
  
  
  1.8   +8 -1  xml-cocoon2/src/java/org/apache/cocoon/Constants.java
  
  Index: Constants.java
  ===
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/Constants.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- Constants.java14 Feb 2002 09:30:13 -  1.7
  +++ Constants.java15 Feb 2002 10:27:33 -  1.8
  @@ -60,7 +60,7 @@
*
* @author mailto:[EMAIL PROTECTED]";>Stefano Mazzocchi
* @author mailto:[EMAIL PROTECTED]";>Peter Royal
  - * @version CVS $Id: Constants.java,v 1.7 2002/02/14 09:30:13 cziegeler Exp $
  + * @version CVS $Id: Constants.java,v 1.8 2002/02/15 10:27:33 tcurdt Exp $
*/
   public interface Constants {
   
  @@ -106,6 +106,13 @@
* FIXME(GP): Isn't this Servlet specific?
*/
   String ACTION_PARAM   = "cocoon-action";
  +
  +/**
  + * The request parameter prefix to trigger a specific action.
  + *
  + * FIXME(GP): Isn't this Servlet specific?
  + */
  +String ACTION_PARAM_PREFIX   = "cocoon-action-";
   
   /** The name of the property where temporary files will be written to. *