Web Content Display

An error occurred while processing the template.
Error on line 157, column 30 in 10153#10191#4809223
Expecting a string, date or number here, Expression bankerCheckData is instead a freemarker.template.SimpleSequence
1${content.getData()} 
2<style> 
3  .baaParent { 
4      width: 960px; 
5      margin: 0 auto; 
6      position: relative; 
7      height: 630px; 
8
9  .lds-ring { 
10    display: inline-block; 
11    position: relative; 
12    width: 64px; 
13    height: 64px; 
14    top: 100px; 
15    left: calc(50% - 24px); 
16
17  .lds-ring div { 
18    box-sizing: border-box; 
19    display: block; 
20    position: absolute; 
21    width: 48px; 
22    height: 48px; 
23    margin: 8px; 
24    border: 8px solid #193889; 
25    border-radius: 50%; 
26    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite; 
27    border-color: #193889 transparent transparent transparent; 
28     
29
30  .lds-ring div:nth-child(1) { 
31    animation-delay: -0.45s; 
32
33  .lds-ring div:nth-child(2) { 
34    animation-delay: -0.3s; 
35
36  .lds-ring div:nth-child(3) { 
37    animation-delay: -0.15s; 
38
39  @keyframes lds-ring { 
40    0% { 
41      transform: rotate(0deg); 
42
43    100% { 
44      transform: rotate(360deg); 
45
46
47</style> 
48<div class="baaParent"> 
49    <div class="lds-ring"><div></div><div></div><div></div><div></div></div> 
50</div> 
51<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService") > 
52<#assign url404 = propsUtil.get('layout.friendly.url.page.not.found') > 
53<#assign url = request.attributes.CURRENT_URL > 
54<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
55<#assign creditcardlearnmore = propsUtil.get('elan.creditcardlearnmore.url')> 
56 
57<#if qstringmap["bankercode"]?has_content> 
58    <#assign bCode= qstringmap["bankercode"]?first> 
59    <#assign bankerCheckData = utilServ.makeCall('crcDDCBankerAssistedAppSql','0&'+bCode)> 
60    <!--#assign checkData = bankerCheckData?first -->  
61    <#if (bankerCheckData?if_exists?size > 0) > 
62     
63        <#list bankerCheckData as b> 
64           
65          <#assign projectType = b.projectType> 
66          <#assign pbu = b.pbu > 
67          <#assign page = b.page > 
68          <#assign projectId = b.projectId> 
69          <#assign lc = b.locationCode> 
70           
71        </#list> 
72 
73        <#assign projectIdList = ["8", "9", "10", "11", "12", "13", "14"]> 
74 
75        <#if projectIdList?seq_contains(projectId)> 
76            <#if bCode?starts_with("amp") && (bCode?length > 6)> 
77                <#assign ecid = "OTHE_29060"> 
78            <#else> 
79                <#assign ecid = "OTHE_26646"> 
80            </#if> 
81        <#elseif projectId = '-1'> 
82            <#assign ecid = "OTHE_26805"> 
83        <#else> 
84            <#assign ecid = "OTHE_25398"> 
85        </#if> 
86         
87        <#if projectType == 'atm'> 
88            <script> 
89                console.log("redirect from atm"); 
90                console.log("${lc}"); 
91                console.log("${page}"); 
92                <#if  
93                  qstringmap["qrCode"]?has_content ||  
94                  qstringmap["qrcode"]?has_content ||  
95                  qstringmap["QRCODE"]?has_content 
96
97                    location.href = "${creditcardlearnmore}${page}?ecdma-lc=${lc}&ecid=${ecid}&qrCode=1"; 
98                <#elseif  
99                  qstringmap["sms"]?has_content || 
100                  qstringmap["SMS"]?has_content 
101
102                    location.href = "${creditcardlearnmore}${page}?ecdma-lc=${lc}&ecid=${ecid}&sms=1"; 
103                <#elseif  
104                  qstringmap["email"]?has_content || 
105                  qstringmap["EMAIL"]?has_content 
106
107                  location.href = "${creditcardlearnmore}${page}?ecdma-lc=${lc}&ecid=${ecid}&email=1"; 
108                <#else> 
109                    location.href = "${creditcardlearnmore}${page}?ecdma-lc=${lc}&ecid=${ecid}"; 
110                </#if> 
111            </script> 
112        <#else> 
113            <#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetailSql','0&'+bCode)> 
114            <#list bData as b> 
115                <#assign lc = b.locationcode > 
116            </#list> 
117            <#if bCode?starts_with("amp") && (bCode?length > 6)> 
118                <#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetailSql','0&'+bCode)> 
119                <#list bData as b>      
120                    <#assign lc = b.mappedLocationCode > 
121                    <script>console.log("${lc}");</script> 
122                </#list>  
123            </#if> 
124            <#-- bankercode bas011 only for testing --> 
125         
126            <script> 
127                 
128                console.log("redirect "); 
129                console.log("${bCode}"); 
130                console.log("redirect to ${page}"); 
131                <#if  
132                  qstringmap["qrCode"]?has_content || 
133                  qstringmap["qrcode"]?has_content || 
134                  qstringmap["QRCODE"]?has_content 
135
136                    //console.log("${page}?bankercode=${bCode}&ecid=${ecid}&qrCode=1") 
137                    location.href = "${page}?bankercode=${bCode}&ecdma-lc=${lc}&ecid=${ecid}&qrCode=1"; 
138                <#elseif  
139                  qstringmap["sms"]?has_content || 
140                  qstringmap["SMS"]?has_content 
141
142                    //console.log("${page}?bankercode=${bCode}&ecid=${ecid}&sms=1") 
143                    location.href = "${page}?bankercode=${bCode}&ecdma-lc=${lc}&ecid=${ecid}&sms=1"; 
144                <#elseif  
145                  qstringmap["email"]?has_content || 
146                  qstringmap["EMAIL"]?has_content 
147
148                  location.href = "${page}?bankercode=${bCode}&ecdma-lc=${lc}&ecid=${ecid}&email=1"; 
149                <#else> 
150                    location.href = "${page}?bankercode=${bCode}&ecdma-lc=${lc}&ecid=${ecid}"; 
151                </#if> 
152            </script> 
153        </#if> 
154    <#else> 
155        <script> 
156            console.log("location code failure"); 
157            //console.log("${bankerCheckData}"); 
158            //location.href = '${url404}'; 
159        </script> 
160    </#if> 
161<#else> 
162    <script> 
163        console.log("banker code failure"); 
164        //location.href = '${url404}'; 
165    </script> 
166</#if>