Works if you change #foreach ($item in enum)
to #foreach ($item in $enum) (Note: it's $enum not only enum.) Peter > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 10, 2002 1:36 PM > To: [EMAIL PROTECTED] > Subject: DO NOT REPLY [Bug 15229] New: - > java.util.Enumeration not supported > > > DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG > RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT > <http://nagoya.apache.org/bugzilla/show_bug.cg> i?id=15229>. > > ANY REPLY MADE TO THIS MESSAGE WILL NOT BE > COLLECTED AND > INSERTED IN THE BUG DATABASE. > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15229 java.util.Enumeration not supported Summary: java.util.Enumeration not supported Product: Velocity Version: 1.3-rc1 Platform: Other OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Build AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Interfaces: public class StringTokenizer extends Object implements Enumeration Controller: ctx.put("enum", new java.util.StringTokenizer("A B C")); Template: <HTML> <BODY> #foreach ($item in enum) <P>$item #end </BODY> </HTML> Result: <HTML> <BODY> </BODY> </HTML> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
