Update of /var/cvs/applications/taglib/src/org/mmbase/bridge/jsp/taglib/pageflow
In directory james.mmbase.org:/tmp/cvs-serv9639
Modified Files:
IncludeTag.java
Log Message:
should escape for use in xhtml
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.85
retrieving revision 1.86
diff -u -b -r1.85 -r1.86
--- IncludeTag.java 18 Feb 2008 18:30:46 -0000 1.85
+++ IncludeTag.java 6 Mar 2008 13:57:45 -0000 1.86
@@ -36,7 +36,7 @@
*
* @author Michiel Meeuwissen
* @author Johannes Verelst
- * @version $Id: IncludeTag.java,v 1.85 2008/02/18 18:30:46 michiel Exp $
+ * @version $Id: IncludeTag.java,v 1.86 2008/03/06 13:57:45 michiel Exp $
*/
public class IncludeTag extends UrlTag {
@@ -262,8 +262,10 @@
default:
case Notfound.DEFAULT:
case Notfound.MESSAGE:
+ if ("".equals(result)) {
Xml xml = new Xml(Xml.ESCAPE);
- if ("".equals(result)) result = "The requested resource '" +
xml.transform(url) + "' is not available";
+ result = "The requested resource '" + xml.transform(url) +
"' is not available";
+ }
output = result;
}
break;
@@ -313,7 +315,8 @@
if (sc == null) log.error("Cannot retrieve ServletContext from
PageContext");
if (!
ResourceLoader.getWebRoot().getResource(relativeUrl).openConnection().getDoInput())
{
- handleResponse(404, "No such resource " + relativeUrl,
relativeUrl);
+ Xml xml = new Xml(Xml.ESCAPE);
+ handleResponse(404, "No such resource " +
xml.transform(relativeUrl), relativeUrl);
} else {
HttpServletRequestWrapper requestWrapper = new
HttpServletRequestWrapper(req);
@@ -387,7 +390,7 @@
Reader reader = ResourceLoader.getWebRoot().getReader(resource);
if (reader == null) {
- handleResponse(404, "No such resource " + resource, resource);
+ handleResponse(404, "No such resource to cite " + resource,
resource);
} else {
StringWriter writer = new StringWriter();
while (true) {
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs