concept escapeXml in category java

appears as: escapeXml
Portlets in Action

This is an excerpt from Manning's book Portlets in Action.

Portlet 1.0 didn’t specify whether the portlet URLs generated by the portlet tag library tags (actionURL and renderURL) are XML-escaped or not. This lack of clarity resulted in mixed implementations of this feature: some portlet containers escaped XML and some didn’t. Because some portlet developers assumed in their implementations that portlet URLs aren’t XML-escaped, the escapeXml attribute and javax.portlet.escapeXml container-runtime option were introduced in portlet 2.0 to clarify that the portlet container must generate XML-escaped portlet URLs or not, depending upon the values of escapeXml and javax.portlet.escapeXml. If you have a portlet that was developed assuming that portlet URLs aren’t XML-escaped (during the Portlet 1.0 days), you can still use the portlet with Portlet 2.0–compliant portlet containers by setting the javax.portlet.escapeXml container-runtime option to false.