Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-26-2007, 09:36 PM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
Rep Power: 10
JavaBean is on a distinguished road
Default 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.

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>
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use Inner bean definitions via nested bean elements Java Tip Java Tips 0 03-30-2008 11:03 AM
Doubt on <bean> tag sudhakarbe Web Frameworks 0 11-22-2007 08:57 AM
Vector in jsp from bean Daniel JavaServer Pages (JSP) and JSTL 1 07-06-2007 06:40 PM
About bean:message yuchuang Web Frameworks 1 05-03-2007 05:50 PM
About bean:write yuchuang Web Frameworks 1 04-30-2007 04:31 PM


All times are GMT +2. The time now is 04:29 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org