You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by bl...@apache.org on 2001/01/10 20:31:41 UTC

cvs commit: xml-cocoon/src/org/apache/cocoon/acting AddEmployeeAction.java

bloritsch    01/01/10 11:31:41

  Modified:    src/org/apache/cocoon/acting Tag: xml-cocoon2
                        AddEmployeeAction.java
  Log:
  Repair
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.4   +5 -3      xml-cocoon/src/org/apache/cocoon/acting/Attic/AddEmployeeAction.java
  
  Index: AddEmployeeAction.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/acting/Attic/AddEmployeeAction.java,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- AddEmployeeAction.java	2001/01/10 17:31:56	1.1.2.3
  +++ AddEmployeeAction.java	2001/01/10 19:31:39	1.1.2.4
  @@ -34,7 +34,7 @@
   /**
    *
    * @author <a href="mailto:Giacomo.Pati@pwr.ch">Giacomo Pati</a>
  - * @version CVS $Revision: 1.1.2.3 $ $Date: 2001/01/10 17:31:56 $
  + * @version CVS $Revision: 1.1.2.4 $ $Date: 2001/01/10 19:31:39 $
    */
   public class AddEmployeeAction extends ComposerAction {
   
  @@ -44,11 +44,13 @@
        * Get the <code>Configuration</code> object for this <code>Component</code>
        */
       public void configure( Configuration configuration) throws ConfigurationException {
  +        Configuration connElement = configuration.getChild("use-connection");
  +
           try {
               ComponentSelector selector = (ComponentSelector) this.manager.lookup(Roles.DB_CONNECTION);
  -            this.datasource = (DataSourceComponent) selector.select(configuration.getChild("use-connection").getValue());
  +            this.datasource = (DataSourceComponent) selector.select(connElement.getValue());
           } catch (ComponentManagerException cme) {
  -            throw new ConfigurationException("Could not get the DataSource Object", cme);
  +            throw new ConfigurationException("Could not get the DataSource Component", cme);
           }
       }