dgraham 2003/09/07 16:28:42 Modified: doc/userGuide building_controller.xml Log: Fixed scriptlet example code for PR# 22906. Revision Changes Path 1.68 +9 -3 jakarta-struts/doc/userGuide/building_controller.xml Index: building_controller.xml =================================================================== RCS file: /home/cvs/jakarta-struts/doc/userGuide/building_controller.xml,v retrieving revision 1.67 retrieving revision 1.68 diff -u -r1.67 -r1.68 --- building_controller.xml 30 Aug 2003 23:19:20 -0000 1.67 +++ building_controller.xml 7 Sep 2003 23:28:42 -0000 1.68 @@ -682,9 +682,15 @@ To create a form with dynamic field names, you could do the following: </p> -<pre><code><![CDATA[<% for (int i=0; i<10; i++) { -String name = "value(foo-" + i + ")"; -<html:text property="<%=name%>"/><br/> +<pre><code><![CDATA[ +<% + for (int i = 0; i < 10; i++) { + String name = "value(foo-" + i + ")"; +%> + <html:text property="<%= name %>"/> + <br/> +<% + } %> ]]></code></pre>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]