cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: xml-cocoon/webapp/docs/samples/forms employee.xsp
Date Tue, 27 Feb 2001 17:08:17 GMT
bloritsch    01/02/27 09:08:16

  Modified:    webapp   Tag: xml-cocoon2 sitemap.xmap
               webapp/docs/samples/forms Tag: xml-cocoon2 employee.xsp
  Removed:     src/org/apache/cocoon/acting Tag: xml-cocoon2
                        AddEmployeeAction.java DelEmployeeAction.java
                        UpdEmployeeAction.java
  Log:
  Updated Webapp to use generic Actions
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.44  +12 -12    xml-cocoon/webapp/Attic/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/webapp/Attic/sitemap.xmap,v
  retrieving revision 1.1.2.43
  retrieving revision 1.1.2.44
  diff -u -r1.1.2.43 -r1.1.2.44
  --- sitemap.xmap	2001/02/21 23:55:13	1.1.2.43
  +++ sitemap.xmap	2001/02/27 17:08:12	1.1.2.44
  @@ -84,15 +84,9 @@
     </map:matchers>
   
     <map:actions>
  -   <map:action name="add-employee" src="org.apache.cocoon.acting.AddEmployeeAction">
  -     <use-connection>personnel</use-connection>
  -   </map:action>
  -   <map:action name="del-employee" src="org.apache.cocoon.acting.DelEmployeeAction">
  -     <use-connection>personnel</use-connection>
  -   </map:action>
  -   <map:action name="upd-employee" src="org.apache.cocoon.acting.UpdEmployeeAction">
  -     <use-connection>personnel</use-connection>
  -   </map:action>
  +   <map:action name="add-employee" src="org.apache.cocoon.acting.DatabaseAddAction"/>
  +   <map:action name="del-employee" src="org.apache.cocoon.acting.DatabaseDeleteAction"/>
  +   <map:action name="upd-employee" src="org.apache.cocoon.acting.DatabaseUpdateAction"/>
     </map:actions>
   
    </map:components>
  @@ -125,9 +119,15 @@
   
    <map:action-sets>
     <map:action-set name="employee">
  -   <map:act type="add-employee" action="Add"/>
  -   <map:act type="del-employee" action="Delete"/>
  -   <map:act type="upd-employee" action="Update"/>
  +   <map:act type="add-employee" action="Add">
  +    <parameter name="form-descriptor" value="context://docs/samples/forms/employee.xml"/>
  +   </map:act>
  +   <map:act type="del-employee" action="Delete">
  +    <parameter name="form-descriptor" value="context://docs/samples/forms/employee.xml"/>
  +   </map:act>
  +   <map:act type="upd-employee" action="Update">
  +    <parameter name="form-descriptor" value="context://docs/samples/forms/employee.xml"/>
  +   </map:act>
     </map:action-set>
    </map:action-sets>
   
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.8   +3 -1      xml-cocoon/webapp/docs/samples/forms/Attic/employee.xsp
  
  Index: employee.xsp
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/webapp/docs/samples/forms/Attic/employee.xsp,v
  retrieving revision 1.1.2.7
  retrieving revision 1.1.2.8
  diff -u -r1.1.2.7 -r1.1.2.8
  --- employee.xsp	2001/01/18 21:34:34	1.1.2.7
  +++ employee.xsp	2001/02/27 17:08:14	1.1.2.8
  @@ -45,7 +45,9 @@
         </form>
         <form action="" method="POST" name="EmployeeEntry">
           <script>document.forms["EmployeeEntry"].action = window.location.pathname</script>
  -        <input type="hidden" name="employee"/>
  +        <input type="hidden" name="employee">
  +	  <xsp:attribute name="value"><xsp:expr>((empID != null) ? empID : "")</xsp:expr></xsp:attribute>
  +	</input>
           <para>Employee Name:
   	  <input name="name" type="text">
   	   <xsp:attribute name="value"><xsp:expr>((name != null) ? name : "")</xsp:expr></xsp:attribute>
  
  
  

Mime
View raw message