You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by js...@apache.org on 2001/07/24 19:04:12 UTC
cvs commit: jakarta-taglibs/xtags/examples/web/test test_replace.jsp
jstrachan 01/07/24 10:04:12
Modified: xtags/examples/web/test test_replace.jsp
Log:
Patched <replace> example to work with Tomcat 4.0
Revision Changes Path
1.2 +11 -4 jakarta-taglibs/xtags/examples/web/test/test_replace.jsp
Index: test_replace.jsp
===================================================================
RCS file: /home/cvs/jakarta-taglibs/xtags/examples/web/test/test_replace.jsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- test_replace.jsp 2001/07/24 14:29:14 1.1
+++ test_replace.jsp 2001/07/24 17:04:12 1.2
@@ -102,17 +102,24 @@
</xtags:replace>
</xtags:context>
-<% try { %>
+<%
+ try {
+%>
+
<xtags:context select="//foo">
<xtags:replace><?xml version="1.0"?>
<!-- a comment -->
<root>Another root node with an xml declaration</root>
</xtags:replace>
</xtags:context>
-<% } catch (JspException e) { %>
- <p>Exception - should say too many context nodes: <pre><%= e.getMessage() %></pre></p>
-<% } %>
+<%
+ } catch (Exception e) {
+%>
+ <p>Exception - should say too many context nodes: <pre><%= e.getMessage() %></pre></p>
+<%
+ }
+%>
<xtags:copyOf select="/"/>