cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/portal/java/org/apache/cocoon/portal/application PortalApplicationConfig.java
Date Sun, 07 Dec 2003 13:27:55 GMT
cziegeler    2003/12/07 05:27:55

  Modified:    src/blocks/portal/java/org/apache/cocoon/portal/application
                        PortalApplicationConfig.java
  Log:
  Fixing configuration bug
  
  Revision  Changes    Path
  1.3       +10 -4     cocoon-2.1/src/blocks/portal/java/org/apache/cocoon/portal/application/PortalApplicationConfig.java
  
  Index: PortalApplicationConfig.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/portal/java/org/apache/cocoon/portal/application/PortalApplicationConfig.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PortalApplicationConfig.java	18 Sep 2003 14:38:46 -0000	1.2
  +++ PortalApplicationConfig.java	7 Dec 2003 13:27:55 -0000	1.3
  @@ -56,6 +56,7 @@
   import org.w3c.dom.Element;
   import org.w3c.dom.Node;
   import org.w3c.dom.NodeList;
  +import org.w3c.dom.Text;
   
   /**
    * This class holds the configuration of an external portal application.
  @@ -165,9 +166,14 @@
           for (int i = 0; i < settings.getLength(); i++) {
               Node current = settings.item(i);
               if ( current.getNodeType() == Node.ELEMENT_NODE) {
  -               data.put(
  -                    ((Element) current).getNodeName(),
  -                    ((Element)current).getNodeValue());
  +                NodeList content = current.getChildNodes();
  +                for (int j = 0; j < content.getLength(); j++) {
  +                    Node text = content.item(j);
  +                    if (text.getNodeType() == Node.TEXT_NODE) {
  +                        data.put(((Element) current).getNodeName(),
  +                                 ((Text) text).getNodeValue());
  +                    }
  +                }
               }
           }
       }
  
  
  

Mime
View raw message