Update of /var/cvs/applications/taglib/src/org/mmbase/bridge/jsp/taglib/pageflow
In directory james.mmbase.org:/tmp/cvs-serv7801

Modified Files:
        IncludeTag.java 
Log Message:
make sure the message correct XML, so to not kill an XHTML rendering


See also: 
http://cvs.mmbase.org/viewcvs/applications/taglib/src/org/mmbase/bridge/jsp/taglib/pageflow


Index: IncludeTag.java
===================================================================
RCS file: 
/var/cvs/applications/taglib/src/org/mmbase/bridge/jsp/taglib/pageflow/IncludeTag.java,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -b -r1.82 -r1.83
--- IncludeTag.java     5 Dec 2007 17:16:13 -0000       1.82
+++ IncludeTag.java     18 Jan 2008 14:07:25 -0000      1.83
@@ -27,6 +27,7 @@
 import java.util.*;
 
 import org.mmbase.util.*;
+import org.mmbase.util.transformers.Xml;
 import org.mmbase.util.logging.Logger;
 import org.mmbase.util.logging.Logging;
 
@@ -35,7 +36,7 @@
  *
  * @author Michiel Meeuwissen
  * @author Johannes Verelst
- * @version $Id: IncludeTag.java,v 1.82 2007/12/05 17:16:13 michiel Exp $
+ * @version $Id: IncludeTag.java,v 1.83 2008/01/18 14:07:25 michiel Exp $
  */
 
 public class IncludeTag extends UrlTag {
@@ -257,7 +258,8 @@
             default:
             case Notfound.DEFAULT:
             case Notfound.MESSAGE:
-                if ("".equals(result)) result = "The requested resource '" + 
url + "' is not available";
+                Xml xml = new Xml(Xml.ESCAPE);
+                if ("".equals(result)) result = "The requested resource '" + 
xml.transform(url) + "' is not available";
                 output = result;
             }
             break;
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to