Web Content Display

An error occurred while processing the template.
Error on line 156, 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('crcDDCBankerAssistedApp','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        </#list> 
71 
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('crcDDCBankerAssistedAppDetail','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('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
119                <#list bData as b>      
120                    <#assign lc = b.mappedLocationCode > 
121                </#list>  
122            </#if> 
123            <#-- bankercode bas011 only for testing --> 
124         
125            <script> 
126                 
127                console.log("redirect "); 
128                console.log("${bCode}"); 
129                console.log("${page}"); 
130                <#if  
131                  qstringmap["qrCode"]?has_content || 
132                  qstringmap["qrcode"]?has_content || 
133                  qstringmap["QRCODE"]?has_content 
134
135                    //console.log("${page}?bankercode=${bCode}&ecid=${ecid}&qrCode=1") 
136                    location.href = "${page}?bankercode=${bCode}&ecdma-lc=${lc}&ecid=${ecid}&qrCode=1"; 
137                <#elseif  
138                  qstringmap["sms"]?has_content || 
139                  qstringmap["SMS"]?has_content 
140
141                    //console.log("${page}?bankercode=${bCode}&ecid=${ecid}&sms=1") 
142                    location.href = "${page}?bankercode=${bCode}&ecdma-lc=${lc}&ecid=${ecid}&sms=1"; 
143                <#elseif  
144                  qstringmap["email"]?has_content || 
145                  qstringmap["EMAIL"]?has_content 
146
147                  location.href = "${page}?bankercode=${bCode}&ecdma-lc=${lc}&ecid=${ecid}&email=1"; 
148                <#else> 
149                    location.href = "${page}?bankercode=${bCode}&ecdma-lc=${lc}&ecid=${ecid}"; 
150                </#if> 
151            </script> 
152        </#if> 
153    <#else> 
154        <script> 
155            console.log("location code failure"); 
156            //console.log("${bankerCheckData}"); 
157            location.href = '${url404}'; 
158        </script> 
159    </#if> 
160<#else> 
161    <script> 
162        console.log("banker code failure"); 
163        location.href = '${url404}'; 
164    </script> 
165</#if>