I've received a lot of help on stackoverflow and I greatly appreciate it. I seem to be stuck on coding this List Loop correctly. I'm aware there are much simpler ways to code this project, but my student project REQUIRES me to pass variables through the URL. I am trying to simply combine the passwords I'm passing through the URL to create all password combos available with six values (cold,fusion,dynamic and bert, ernie, oscar). I've isolated the issue to my List Loop. Can you guys tell what I'm missing here? Thanks in advance.
Error Message:
Error casting an object of type coldfusion.compiler.ASTstructureReference cannot be cast to java.lang.String to an incompatible type.
This usually indicates a programming error in Java, although it could also mean you have tried to use a foreign object in a different way than it was designed.
passwords.cfm:
<cfinclude template="header.cfm">
<body>
<h2>Loop List</h2>
<a href="looplist.cfm?List1=cold,fusion,dynamic&List2=bert,ernie,oscar">
Click here for all password combinations</a>
<cfinclude template="footer.cfm">
looplist.cfm:
<cfinclude template="header.cfm">
<h2>Loop List</h2>
<cfloop Index = "#URL.List1#" List = "#URL.List2#">
<cfloop Index = "#URL.List2#" List = "#URL.List1#">
</cfloop>
</cfloop>
<cfset passwordList= #URL.List1# & #URL.List2#>
<UL><cfoutput>#passwordList#</cfoutput><UL><BR>
<cfinclude template="footer.cfm">
indexof the loop and overwrite the variables...