geirm 2003/10/23 09:20:12
Modified: xdocs user-guide.xml
docs user-guide.html
Log:
change to reflect syntax change for map (uses {) and also the
critical fix to 'banana'
:)
Revision Changes Path
1.66 +3 -3 jakarta-velocity/xdocs/user-guide.xml
Index: user-guide.xml
===================================================================
RCS file: /home/cvs/jakarta-velocity/xdocs/user-guide.xml,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -r1.65 -r1.66
--- user-guide.xml 23 Oct 2003 13:50:07 -0000 1.65
+++ user-guide.xml 23 Oct 2003 16:20:12 -0000 1.66
@@ -838,7 +838,7 @@
#set( $monkey.Plan = $spindoctor.weave($web) ) ## method reference
#set( $monkey.Number = 123 ) ##number literal
#set( $monkey.Say = ["Not", $my, "fault"] ) ## ArrayList
-#set( $monkey.Map = ["bannana" : "good", "roast beef" : "bad"]) ## Map
+#set( $monkey.Map = {"banana" : "good", "roast beef" : "bad"}) ## Map
]]></source>
<p>
@@ -850,10 +850,10 @@
<p>
Similarly, for the Map example, the elements defined within the
- [..] operator are accessible using the methods defined
+ { } operator are accessible using the methods defined
in the Map class. So, for example, you could access
the first element above using $monkey.Map.get("bannana") to return
- a String 'good', or even $monkey.Map.bannana to return the
+ a String 'good', or even $monkey.Map.banana to return the
same value.
</p>
1.80 +3 -3 jakarta-velocity/docs/user-guide.html
Index: user-guide.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/user-guide.html,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -r1.79 -r1.80
--- user-guide.html 23 Oct 2003 13:50:07 -0000 1.79
+++ user-guide.html 23 Oct 2003 16:20:12 -0000 1.80
@@ -1469,7 +1469,7 @@
#set( $monkey.Plan = $spindoctor.weave($web) ) ## method reference
#set( $monkey.Number = 123 ) ##number literal
#set( $monkey.Say = ["Not", $my, "fault"] ) ## ArrayList
-#set( $monkey.Map = ["bannana" : "good", "roast beef"
: "bad"]) ## Map
+#set( $monkey.Map = {"banana" : "good", "roast beef"
: "bad"}) ## Map
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
@@ -1488,10 +1488,10 @@
</p>
<p>
Similarly, for the Map example, the elements defined within the
- [..] operator are accessible using the methods defined
+ { } operator are accessible using the methods defined
in the Map class. So, for example, you could access
the first element above using $monkey.Map.get("bannana") to return
- a String 'good', or even $monkey.Map.bannana to return the
+ a String 'good', or even $monkey.Map.banana to return the
same value.
</p>
<p>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]