velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nbu...@apache.org
Subject svn commit: r533290 - in /velocity/tools/trunk/examples/showcase: VM_global_library.vm link.vm
Date Sat, 28 Apr 2007 03:55:42 GMT
Author: nbubna
Date: Fri Apr 27 20:55:41 2007
New Revision: 533290

URL: http://svn.apache.org/viewvc?view=rev&rev=533290
Log:
fix misc problems with LinkTool demos

Modified:
    velocity/tools/trunk/examples/showcase/VM_global_library.vm
    velocity/tools/trunk/examples/showcase/link.vm

Modified: velocity/tools/trunk/examples/showcase/VM_global_library.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/VM_global_library.vm?view=diff&rev=533290&r1=533289&r2=533290
==============================================================================
--- velocity/tools/trunk/examples/showcase/VM_global_library.vm (original)
+++ velocity/tools/trunk/examples/showcase/VM_global_library.vm Fri Apr 27 20:55:41 2007
@@ -108,7 +108,7 @@
     #foreach( $param in $request.parameterMap.keySet() )
       #foreach( $value in $params.getStrings($param) )
         #if( $param != $method )
-          <input type="hidden" name="$param" value="$value">
+          <input type="hidden" name="$param" value="$esc.html($value)">
         #end
       #end
     #end
@@ -145,7 +145,7 @@
     #foreach( $param in $request.parameterMap.keySet() )
       #foreach( $value in $params.getStrings($param) )
         #if( $param != $method1 && $param != $method2 )
-          <input type="hidden" name="$param" value="$value">
+          <input type="hidden" name="$param" value="$esc.html($value)">
         #end
       #end
     #end
@@ -184,7 +184,7 @@
     #foreach( $param in $request.parameterMap.keySet() )
       #foreach( $value in $params.getStrings($param) )
         #if( $param != $method1 && $param != $method2 && $param != $method3
)
-          <input type="hidden" name="$param" value="$value">
+          <input type="hidden" name="$param" value="$esc.html($value)">
         #end
       #end
     #end
@@ -217,7 +217,7 @@
     #foreach( $param in $request.parameterMap.keySet() )
       #foreach( $value in $params.getStrings($param) )
         #if( $param != 'custom' )
-          <input type="hidden" name="$param" value="$value">
+          <input type="hidden" name="$param" value="$esc.html($value)">
         #end
       #end
     #end

Modified: velocity/tools/trunk/examples/showcase/link.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/link.vm?view=diff&rev=533290&r1=533289&r2=533290
==============================================================================
--- velocity/tools/trunk/examples/showcase/link.vm (original)
+++ velocity/tools/trunk/examples/showcase/link.vm Fri Apr 27 20:55:41 2007
@@ -70,10 +70,10 @@
 #demoAlt( 'link' 'params' $desc )
 
 
-#set( $desc = "Returns the URI that addresses this web application. E.g. <code>http://myserver.net/myapp</code>.
This string does not end with a "/"." )
+#set( $desc = "Returns the URI that addresses this web application. E.g. <code>http://myserver.net/myapp</code>.
This string does not end with a ${esc.q}/${esc.q}." )
 #demo( 'link' 'contextURL' $desc )
 
-#set( $desc = "Returns the context path that addresses this web application, e.g. <code>/myapp</code>.
This string starts with a "/" but does not end with a "/"." )
+#set( $desc = "Returns the context path that addresses this web application, e.g. <code>/myapp</code>.
This string starts with a ${esc.q}/${esc.q} but does not end with a ${esc.q}/${esc.q}." )
 #demo( 'link' 'contextPath' $desc )
 
 #set( $desc = "Retrieves the path for the current request regardless of whether this is a
direct request or an include by the RequestDispatcher." )
@@ -100,8 +100,8 @@
 #if( $params.demo )##
 $params.demo##
 #else##
-## NOTE: this first line is done in the actual page,
-##       because #set() doesn't work in these demos
+${esc.h}${esc.h} NOTE: this first line is done in the actual page,
+${esc.h}${esc.h}       because ${esc.h}set() doesn't work in these demos
 ${esc.h}set( ${esc.d}base = ${esc.d}link.self.anchor('fullDemo') )
 <a href="${esc.d}base.param('select','this')">this</a>
 <a href="${esc.d}base.param('select','that')">that</a>##



Mime
View raw message