You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by js...@apache.org on 2002/09/24 13:03:57 UTC
cvs commit: jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/define Customer.java
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>