This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes escapeXML by default... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "escapeXML by default..." Watch "escapeXML by default..." New topic

escapeXML by default...

Yosi Pramajaya
Ranch Hand

Joined: Jun 30, 2011
Posts: 46

We can specified whether cut escapeXML=true / false.
But, if we don't specified that, what is default value? False?

Independent Programmer - Technology Enthusiast - JUG Leader from JUG Joglosemar
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper

Joined: Apr 07, 2010
Posts: 2017

Hi Yosi,

From the jstl specs:

4.2 <c: out>
Name | Dynamic allowed | Type
escapeXml | true | boolean

Determines whether characters <,>,&, '," in the resulting string should be converted to their corresponding character entity codes.
Default value is true.

I agree. Here's the link:
subject: escapeXML by default...
It's not a secret anymore!