• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trouble with JSTL c:out

 
Agur Dunit
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much John.
It's fine
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic