commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/define Customer.java
Date Tue, 24 Sep 2002 11:03:57 GMT
jstrachan    2002/09/24 04:03:57

  Modified:    jelly/src/test/org/apache/commons/jelly/define Customer.java
  Log:
  Added support for a <j:setProperties> tag which can make creating beans and setting
properties on them much simpler.
  e.g.
  
  <j:new var="customer" className="com.acme.MyCustomer"/>
  <j:setProperties object="${customer}" name="James" location="London" orders="${foo.findOrders()}"/>
  
  Revision  Changes    Path
  1.2       +4 -0      jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/define/Customer.java
  
  Index: Customer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/define/Customer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Customer.java	17 Jul 2002 17:38:16 -0000	1.1
  +++ Customer.java	24 Sep 2002 11:03:57 -0000	1.2
  @@ -84,6 +84,10 @@
       }
       
       
  +    public String toString() {
  +        return super.toString() + "[name=" + name + ";city=" + city + "]";
  +    }
  +    
       // Properties
       //-------------------------------------------------------------------------
       /**
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message