Hello,
Hopefully this is an easy question for the forum, but it's a problem I haven't been able to figure out, thus far.
I am setting a property of type String in this fashion:
<bean ....>
<property name="timeFormat" value="%m/%d\n%l%P"/>
...
</bean
However, when the setFormat method is called by the framework, the String's charArray looks like this: (size: 11) [%, m, /, %, d, \, n, %, l, %, P]; Note that the "\n" have been split into two characters, instead of one.
If I set the property manually in my class using a String literal or a String constructor, it does the right thing: size(10) [%, m, /, %, d, \n, %, l, %, P]
Is there a way to tell Spring to behave the same way as a String's constructor?
Thanks, in advance, for any tips you can provide.


Reply With Quote
