File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
JSP
Author
Trouble with JSTL c:out
Agur Dunit
Greenhorn
Joined: Sep 30, 2008
Posts: 24
posted
Sep 30, 2008 10:46:00
0
Hi guys,
I have trouble with c
ut when printing apostrophe coded in ascii. Here my probleme:
<c
ut 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
posted
Sep 30, 2008 14:21:00
0
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
posted
Oct 01, 2008 06:04:00
0
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
From Byte[] to Ascii text String
escape apostrophe in xsl
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
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter