tags:

views:

1189

answers:

4

I have

   <bean id="dao" class="......"> 
      <property name="foo">
         <props>
           <prop key="me">Homer</prop>
         <props>
       <property>
   </bean>

I want to use my current properties file, name-value pair, to change "Homer" I cannot figure it out...

A: 

message was clipped, here it is again:

bmw0128
You have to indent HTML with 4 spaces for it to show up as code. I fixed it for you in the original question.
yjerem
A: 

original post is there?

bmw0128
+1  A: 

Use the PropertyPlaceholderConfigurer bean. Example here:

http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#beans-factory-placeholderconfigurer

cliff.meyers
A: 

using that is not the same for my situation. note that my situation has a "" tag with a "key" and no "value". the link you gave me is the usual value="${.....}" stuff, that is not similar to my problem

bmw0128
You can embed ${my.property} between the prop tag elements. A placeholder doesn't need to go inside of an XML attribute value.
cliff.meyers