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:[EMAIL PROTECTED]">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);
           }
       }
   
  
  
  

Reply via email to