Link to ASCII characters: http://www.robelle.com/smugbook/ascii.htmlJim, if you are trying to write the ampersand character to output with a Struts <bean:write/>, make sure the string is not filtered. By default, Struts filters special characters. So, for instance, if your string is "name=value&name=value", and if you write this with a bean like <bean:write name="xyz" property="abc"/> (and abc is storing the before mentioned string), the output will be name=value&name=value. If you set the filter attribute to false, the ampersand character literal will be written to output: <bean:write name="xyz" property="abc" filter="false"/> will output name=value&name=value.
Hope this helps. - Jeff----- Original Message ----- From: "qubit" <lauraeaves@xxxxxxxxx>
To: <program-java@xxxxxxxxxxxxx> Sent: Thursday, October 14, 2010 3:57 PM Subject: [program-java] Re: Java: Escape Sequence
makes sense, but I don't know the answer then. Kindly post when you find out. --le----- Original Message ----- From: "Corbett, James" <James.Corbett@xxxxxxxxxxxxx>To: <program-java@xxxxxxxxxxxxx> Sent: Thursday, October 14, 2010 2:45 PM Subject: [program-java] Re: Java: Escape Sequence Laura: No, I'm looking to insert the ampersand symbol into my string with the use of the escape sequence. I've tried the & and \& to no affect. There isplenty of HTML examples but this is just straight characters parced througha resource bundle from a properties file. Jim -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of qubit Sent: October 14, 2010 15:42 To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: Java: Escape Sequence I don't know the ascii equivalent if that is what you want. --le is that in html? if so it is & ----- Original Message ----- From: Corbett, James <mailto:James.Corbett@xxxxxxxxxxxxx> To: 'program-java@xxxxxxxxxxxxx' Sent: Thursday, October 14, 2010 2:31 PM Subject: [program-java] Java: Escape Sequence Hi: ...back to the resource file again. I'm trying to print theampersand symbol (&) to a screen but it's coming up weird. Does anyone knowthe Escape Sequence for this character? Jim James M. Corbett Programmer / Analyst | Canada Revenue Agency | Agence du revenue du Canada 875 Heron Rd. Ottawa, On. K1A0L5 James.Corbett@xxxxxxxxxxxxx Telephone | Téléphone: (613) 941-1338 Facsimile | Télécopieur: (613) 941-2261 Government of Canada | Gouvernement du Canada