File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes delimit ampersand in applicationContext.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Meteor in Action this week in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "delimit ampersand in applicationContext.xml" Watch "delimit ampersand in applicationContext.xml" New topic

delimit ampersand in applicationContext.xml

Stu Johns
Ranch Hand

Joined: Aug 11, 2008
Posts: 63
I need to use an ampersand in a bean definition, I am trying to do it like this:

any ideas how I can delimit this character?


Karthik Shiraly
Ranch Hand

Joined: Apr 04, 2009
Posts: 585

"me& amp;you"

[There should be no space after & .. I had to put it because this site shows it as & otherwise]
Stu Johns
Ranch Hand

Joined: Aug 11, 2008
Posts: 63
that worked great thank you
Sandy Ghosh
Ranch Hand

Joined: Jun 05, 2010
Posts: 30

Please let me know how to escape "a<b" ?
Bill Gorder

Joined: Mar 07, 2010
Posts: 1681

in your case you need & lt;

*Note there should not be a space after the & but I had to add it to keep the forum from formatting it)

[How To Ask Questions][Read before you PM me]
I agree. Here's the link:
subject: delimit ampersand in applicationContext.xml