Results 1 to 1 of 1
-
How to use Idref Element and its advantages
This is an way to pass the id of another bean in the container in <constructor-arg/> or <property/> element)
Java Code:<bean id="ServerBean" class="..."/> <bean id="ClientBean" class="..."> <property name="IpName"> <idref bean="ServerBean" /> </property> </bean>
Java Code:<bean id=" ServerBean " class="..."/> <bean id="clientBean " class="..."> <property name=" IpName <value> ServerBean </value> </property> </bean>
Similar Threads
-
What are dependency injection and its advantages
By Java Tip in forum Java TipReplies: 0Last Post: 03-29-2008, 01:36 PM -
How to use Idref Element and its advantages
By JavaBean in forum Java TipReplies: 0Last Post: 09-26-2007, 09:37 PM -
Advantages
By samson in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 04-02-2007, 04:30 PM
Bookmarks