Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSP and the fly likes Trouble with JSTL c:out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Trouble with JSTL c:out" Watch "Trouble with JSTL c:out" New topic
Author

Trouble with JSTL c:out

Agur Dunit
Greenhorn

Joined: Sep 30, 2008
Posts: 24
Hi guys,

I have trouble with cut when printing apostrophe coded in ascii. Here my probleme:

<cut value="A& #39;B"> print A& #39;B and not A'B

& #39; is the ascii code of apostrophe (')

NB. I have no spaces between caracters & and # in my code

Any help would be appreciated

[ September 30, 2008: Message edited by: Agur Dunit ]

[ September 30, 2008: Message edited by: Agur Dunit ]
[ September 30, 2008: Message edited by: Agur Dunit ]
John Woo
Greenhorn

Joined: Jul 29, 2008
Posts: 8
add an attribute escapeXml=false in the tag. The default value of this attribute is true, and that is why your value is changed.
Agur Dunit
Greenhorn

Joined: Sep 30, 2008
Posts: 24
Thank you very much John.
It's fine
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trouble with JSTL c:out
 
Similar Threads
apostrophe not getting rendered correctly
Creating a table cell with text containing an apostrophe
jstl c:out tag does not display the value in the list
From Byte[] to Ascii text String
escape apostrophe in xsl