Results 1 to 1 of 1
- 09-26-2007, 08:36 PM #1
How to use Inner bean definitions via nested bean elements
Instead of referring to a bean you can define bean element inside the property element to make it inline.
Java Code:<bean id="outer" class="..."> <!-- Instead of using a reference to target, just use an inner bean --> <property name="target"> <bean class="org.sample.SimpleImpl"> <property name="name"><value>aad</value></property> <property name="age"><value>52</value></property> </bean> </property> </bean>
Similar Threads
-
How to use Inner bean definitions via nested bean elements
By Java Tip in forum Java TipReplies: 0Last Post: 03-30-2008, 10:03 AM -
Doubt on <bean> tag
By sudhakarbe in forum Web FrameworksReplies: 0Last Post: 11-22-2007, 07:57 AM -
Vector in jsp from bean
By Daniel in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 07-06-2007, 05:40 PM -
About bean:message
By yuchuang in forum Web FrameworksReplies: 1Last Post: 05-03-2007, 04:50 PM -
About bean:write
By yuchuang in forum Web FrameworksReplies: 1Last Post: 04-30-2007, 03:31 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks