Wednesday, January 8, 2014

Spring Course V13: The P NameSpace

we learned before that if you want to set a property you use the <property> tag:

<bean id="address" class="com.caveofprogramming.spring.test.Address">
<property name="street" value="1 Church Lane"></property>
<property name="postcode" value="9876"></property>

another way of doing that is to use P NameSpace.

so firstly you import the namespace

and then you use p:propertyName (e.g. p:street).

No comments:

Post a Comment