struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject svn commit: r165709 - /struts/shale/trunk/use-cases/src/web/lookup/listCategories.jsp /struts/shale/trunk/use-cases/src/web/lookup/listLocales.jsp
Date Mon, 02 May 2005 22:54:28 GMT
Author: craigmcc
Date: Mon May  2 15:54:27 2005
New Revision: 165709

URL: http://svn.apache.org/viewcvs?rev=165709&view=rev
Log:
Update JSP pages used to produce XML output to use <c:out> for its sensitive
character escaping capabilities, to ensure that we don't create invalid XML
if the data being emitted happens to include characters like "<" or "'" but
does not render balanced XML itself.

Thanks to Jason Lea <jason AT kumachan.net.nz> on the Struts User mailing
list for the suggestion.

Modified:
    struts/shale/trunk/use-cases/src/web/lookup/listCategories.jsp
    struts/shale/trunk/use-cases/src/web/lookup/listLocales.jsp

Modified: struts/shale/trunk/use-cases/src/web/lookup/listCategories.jsp
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/web/lookup/listCategories.jsp?rev=165709&r1=165708&r2=165709&view=diff
==============================================================================
--- struts/shale/trunk/use-cases/src/web/lookup/listCategories.jsp (original)
+++ struts/shale/trunk/use-cases/src/web/lookup/listCategories.jsp Mon May  2 15:54:27 2005
@@ -30,8 +30,8 @@
     <c:forEach            var="category"
                         items="${lookup$listCategories.supportedCategories}">
       <category>
-        <label>${category.label}</label>
-        <value>${category.value}</value>
+        <label><c:out value="${category.label}"/></label>
+        <value><c:out value="${category.value}"/></value>
       </category>
     </c:forEach>
   </categories>

Modified: struts/shale/trunk/use-cases/src/web/lookup/listLocales.jsp
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/web/lookup/listLocales.jsp?rev=165709&r1=165708&r2=165709&view=diff
==============================================================================
--- struts/shale/trunk/use-cases/src/web/lookup/listLocales.jsp (original)
+++ struts/shale/trunk/use-cases/src/web/lookup/listLocales.jsp Mon May  2 15:54:27 2005
@@ -30,8 +30,8 @@
     <c:forEach            var="locale"
                         items="${lookup$listLocales.supportedLocales}">
       <locale>
-        <label>${locale.label}</label>
-        <value>${locale.value}</value>
+        <label><c:out value="${locale.label}"/></label>
+        <value><c:out value="${locale.value}"/></value>
       </locale>
     </c:forEach>
   </locales>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message