cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon Cocoon.java
Date Wed, 29 Aug 2001 17:56:04 GMT
dims        01/08/29 10:56:04

  Modified:    src/org/apache/cocoon Cocoon.java
  Log:
  Patch for logging all Request Parameters from Mariano Kamp <mkamp@codamax.com>
  
  Revision  Changes    Path
  1.22      +10 -2     xml-cocoon2/src/org/apache/cocoon/Cocoon.java
  
  Index: Cocoon.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/Cocoon.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- Cocoon.java	2001/08/25 19:40:31	1.21
  +++ Cocoon.java	2001/08/29 17:56:04	1.22
  @@ -52,7 +52,7 @@
    *
    * @author <a href="mailto:fumagalli@exoffice.com">Pierpaolo Fumagalli</a>
(Apache Software Foundation, Exoffice Technologies)
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version CVS $Revision: 1.21 $ $Date: 2001/08/25 19:40:31 $
  + * @version CVS $Revision: 1.22 $ $Date: 2001/08/29 17:56:04 $
    */
   public class Cocoon extends AbstractLoggable implements ThreadSafe, Component, Initializable,
Disposable, Modifiable, Processor, Contextualizable {
       /** The application context */
  @@ -386,7 +386,15 @@
                   String p = (String) e.nextElement();
   
                    msg.append("PARAM: '").append(p).append("' ")
  -                    .append("VALUE: '").append(request.getParameter(p)).append("'").append(lineSeparator);
  +                    .append("VALUES: '");
  +		 String[] params = request.getParameterValues(p);
  +		 for (int i = 0; i < params.length; i++) {
  +		     msg.append("["+params[i]+"]");
  +		     if (i != params.length-1) 
  +			 msg.append(", ");
  +		 }
  +		     
  +		 msg.append("'").append(lineSeparator);
               }
   
               msg.append(lineSeparator).append("SESSION ATTRIBUTES:").append(lineSeparator).append(lineSeparator);
  
  
  

----------------------------------------------------------------------
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


Mime
View raw message