lucee

Why is my JSON invalid even though it looks correct?

a 夏天 提交于 2021-01-27 16:15:20
问题 I've been working on this for quite a while, and I just don't understand why my JSON is invalid... JSONLint is showing this error Error: Parse error on line 107: ...pair?", "answer": "Yes, as long as the ----------------------^ Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined' This is the fragment of the JSON { "tags": "already transferred", "question": "Can we transfer customers who have already been transferred previously? what is the dispo? warm transfer or

Why is my JSON invalid even though it looks correct?

左心房为你撑大大i 提交于 2021-01-27 16:10:47
问题 I've been working on this for quite a while, and I just don't understand why my JSON is invalid... JSONLint is showing this error Error: Parse error on line 107: ...pair?", "answer": "Yes, as long as the ----------------------^ Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined' This is the fragment of the JSON { "tags": "already transferred", "question": "Can we transfer customers who have already been transferred previously? what is the dispo? warm transfer or

Why is my JSON invalid even though it looks correct?

旧街凉风 提交于 2021-01-27 15:08:38
问题 I've been working on this for quite a while, and I just don't understand why my JSON is invalid... JSONLint is showing this error Error: Parse error on line 107: ...pair?", "answer": "Yes, as long as the ----------------------^ Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined' This is the fragment of the JSON { "tags": "already transferred", "question": "Can we transfer customers who have already been transferred previously? what is the dispo? warm transfer or

Append to JSON array with ColdFusion, taking Null values into consideration?

与世无争的帅哥 提交于 2020-01-05 04:50:37
问题 I have been digging here on Stack for some time but I do not believe my brain is getting the hint on how to do this. I need this JSON: '{"loginHosts":["server1.example.com","server2.example.com"],"sudoHosts":["server1.example.com","server2.example.com"],"CPG":"my_group","mail":"test@example.com","loginShell":"/bin/bash"}' To look like this JSON: '{"loginHosts":["server1.example.com","server2.example.com","newserver1.example.com","newserver2.example.com"],"sudoHosts":["server1.example.com",

customize lucee5 docker image to allow running of multiple website within the image

青春壹個敷衍的年華 提交于 2019-12-24 06:41:47
问题 I am running the lucee5 image with docker-compose and that works well. I was able to link my local volume into the dockerimages. the local project contains 4 websites which should all run within the docker image. I would like to be able to connect to them like localhost:1337/customer and localhost:1337/player and localhost:1337/etc.. So for this I have to setup Apache on the docker image which I know how to do. However, when I quit stop docker-compose and try to persist the last container

Populating SELECT with large JSON data set via ColdFusion (Lucee) very slow

北慕城南 提交于 2019-12-14 02:14:26
问题 Please forgive me if I have provided more information than required for this question. :D I am building an application that pulls large JSON data-sets from a remote machine. However, I am working within a secure environment that separates application servers with firewalls, etc. Because of this I have had to do a bit of fudging (using SSH) to get the data I need. I have requested additional ports to be opened so I could bypass using SSH but was denied. Here is the physical path to get my data

Running Lucee on Tomcat and need to server a JSP page

天涯浪子 提交于 2019-12-13 18:06:45
问题 I have a Lucee box that is running with Tomcat. Everything is great with the site and CFM pages. I was recently given a page in JSP that the client would like to run on the site. Everything I had read says no problem so I agreed to run it. Put the file in a directory and instead of "processing" it ran like and html page would and I could see the code. Realized that Tomcat hadn't been instructed to process JSP files so I added <url-pattern>*.jsp</url-pattern> to: <servlet-mapping> <servlet

How do I return a coldfusion struct from a method in a java class (in Lucee)?

拟墨画扇 提交于 2019-12-13 16:09:45
问题 I am writing a java class and would like to return a coldfusion struct from a method. Struct extends Map and other things. I'm not a Java programmer, so I'm not sure how to fix this. Here's the lucee java docs. When I try to compile the following code, I get an error saying that Struct is abstract and can't be instantiated (on the line when I try to create myStruct). I've tried to create a new Map, but that's also abstract. import lucee.runtime.type; public class MyClass { public lucee

Prevent mod_jk to shows/append index.cfm?&_modcfmlredirected on page load

 ̄綄美尐妖づ 提交于 2019-12-13 03:23:20
问题 I have set a virtual host configured in apache2 to proxy my cf sites to lucee/tomcat, and using mode_jk for the proxy. Everything works fine except that on first time opening my website after a server restart the apache or lucee or the mod_jk kinda redirects to index.cfm and appending &_modcfmlredirected to the url. So when I open url cf.test I get cf.test/index.cfm&_modcfmlredirected I don't want this to happen, can anyone explain why this is happening AND how to prevent this. BTW: After 1st