You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by di...@apache.org on 2001/05/03 15:18:18 UTC

cvs commit: xml-cocoon/webapp/docs/samples/xsp upload.xsp

dims        01/05/03 06:18:18

  Modified:    webapp/docs/samples/xsp Tag: xml-cocoon2 upload.xsp
  Log:
  Fix Upload - added debug statements.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.5   +6 -2      xml-cocoon/webapp/docs/samples/xsp/Attic/upload.xsp
  
  Index: upload.xsp
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/webapp/docs/samples/xsp/Attic/upload.xsp,v
  retrieving revision 1.1.2.4
  retrieving revision 1.1.2.5
  diff -u -r1.1.2.4 -r1.1.2.5
  --- upload.xsp	2001/04/16 17:59:45	1.1.2.4
  +++ upload.xsp	2001/05/03 13:18:15	1.1.2.5
  @@ -9,12 +9,13 @@
   >
     <xsp:structure>
      <xsp:include>org.apache.cocoon.components.language.markup.xsp.XSPUtil</xsp:include>
  +   <xsp:include>org.apache.avalon.framework.context.ContextException</xsp:include>
     </xsp:structure>
   
     <xsp:logic>
     File uploadDir = null;
     /** Contextualize this class */
  -  public void contextualize(Context context) {
  +  public void contextualize(Context context) throws ContextException {
       uploadDir = (File) context.get(Constants.CONTEXT_UPLOAD_DIR);
     }
     </xsp:logic>
  @@ -31,9 +32,12 @@
        <para>
        <ul>
          <xsp:logic>
  +        getLogger().debug("Dir=" + uploadDir);
            String[] filelist = uploadDir.list();
            <![CDATA[
  -         for (int i = 0; i > filelist.length; i++) {
  +         getLogger().debug("List=" + filelist.length);
  +         for (int i = 0; i < filelist.length; i++) {
  +            getLogger().debug("File [" + i + "]=" + filelist[i]);
            ]]>
              <li>
                <xsp:expr>filelist[i]</xsp:expr>
  
  
  

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