wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "delimit ampersand in applicationContext.xml" Watch "delimit ampersand in applicationContext.xml" New topic
Author

delimit ampersand in applicationContext.xml

Stu Johns
Ranch Hand

Joined: Aug 11, 2008
Posts: 63
Hi,
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?

thanks

Stu.
Karthik Shiraly
Ranch Hand

Joined: Apr 04, 2009
Posts: 489
    
    5
Hi,

Try
"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
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7



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: http://aspose.com/file-tools
 
subject: delimit ampersand in applicationContext.xml
 
Similar Threads
greater/lower than signs converted to &gt; and &lt;
Help with writing code in a different way ( If with and "&")
Passing Two Dimensional Array through Ajax to Java(Action) in Struts
Problem
RequestDispatcher.include problem in IE