railo

How does one convert from a Java resultset to ColdFusion query in Railo?

与世无争的帅哥 提交于 2019-12-05 04:23:29
The following works fine in CFMX 7 and CF8, and I'd assume CF9 as well: <!--- 'conn' is a JDBC connection ---> <cfset stat = conn.createStatement() /> <cfset rs = stat.executeQuery(trim(arguments.sql)) /> <!--- convert this Java resultset to a CF query recordset ---> <cfset queryTable = CreateObject("java", "coldfusion.sql.QueryTable")> <cfset queryTable.init(rs) > <cfset query = queryTable.FirstTable() /> This creates a statement using a JDBC driver, executes a query against it, putting it into a java resultset, and then coldfusion.sql.QueryTable is instantiated, passed the Java resulset

What Notable Differences are there between Railo, Open Bluedragon, and Adobe Coldfusion?

耗尽温柔 提交于 2019-12-05 01:36:20
An attempt to capture notable differences between implementations: Adobe ColdFusion Railo Open Bluedragon (I'm aware of Smith , but don't believe it's still active). Include CFML and platform differences - syntax, feature, and extensibility. Note, this is not something I've not seen anywhere else, but maybe I'm just not searching correctly. So links to that end would count too. Update Here's my definition of notable in this context: something that simplifies solving a difficult problem. For example, Railo offers the <cfvideo> tag, which transcodes video - a non trivial task. Something I would

how to create new database in H2?

社会主义新天地 提交于 2019-12-04 05:38:09
I have a site running locally on MySQL i want to run it on H2 database. I have just run h2.jar file for console on the browser but whenever I Log in I have seen the list jdbc:h2:/var/www/mysite/data/db; MODE=MySQL, information_schema and users. I can create tables in it but don't know how to create new database? I am using Mode = MySQL type = H2 Database Engine in Embedded mode. From http://www.h2database.com/html/tutorial.html#creating_new_databases , By default, if the database specified in the URL does not yet exist, a new (empty) database is created automatically. The user that created the

railo application.cfc this.mappings not working

自古美人都是妖i 提交于 2019-12-04 01:42:57
问题 i am using the latest version of railo, and am trying to get the per-application mappings to work. this is what i am doing: <cfcomponent name="MyApp"> <cfset THIS.Name = "MyApp"> <cfset THIS.Mappings["/myapp"] = ExpandPath(".")> </cfcomponent> so, i am trying to be able to access components within this application folder through a myapp.* mappings rather than having to to rootapp.myapp.* (from what i understand, this component setup should then work. however, my components cannot be accessed

How to do a cfdump inside a cfscript tag?

我是研究僧i 提交于 2019-12-01 14:56:41
In order to debug I would like to dump certain variables on to my web page. How can I do that from inside a cfscript tag? I tried the following but it isn't working: <cfscript> ... <cfif cgi.REMOTE_ADDR eq "IP"> <cfdump var="#var1#"><br/> </cfif> ... </cfscript> Any clues on what can be done? ale You can't do it directly like that in versions before CF 9. You can, however, use the dump() UDF found at CFLib. There's a whole library of UDFs there that mimic CF tags that don't have direct CFSCRIPT equivalents. ColdFusion 9 (and up) offers the writeDump() function. Adobe Documentation Linkfor

How to do a cfdump inside a cfscript tag?

99封情书 提交于 2019-12-01 13:41:44
问题 In order to debug I would like to dump certain variables on to my web page. How can I do that from inside a cfscript tag? I tried the following but it isn't working: <cfscript> ... <cfif cgi.REMOTE_ADDR eq "IP"> <cfdump var="#var1#"><br/> </cfif> ... </cfscript> Any clues on what can be done? 回答1: You can't do it directly like that in versions before CF 9. You can, however, use the dump() UDF found at CFLib. There's a whole library of UDFs there that mimic CF tags that don't have direct

Tomcat configuration help: multiple ports not responding

為{幸葍}努か 提交于 2019-11-30 21:09:54
My goal is to have port 80 and 81 listen and serve content from two distinct paths. I'm looking at replicating what I used to do with IIS and creating websites on specific ports. I took the base configuration file and added the following lines inside the Server tag (server.xml): <Service name="stable"> <Connector port="80" protocol="HTTP/1.1" /> <Context docBase="C:\websites\test\stable\" /> </Service> <Service name="release"> <Connector port="81" protocol="HTTP/1.1" /> <Context docBase="C:\websites\test\release\" /> </Service> I was going on a tip where I had to install a Service tag with

Trying to find a syntax highlighter for ColdFusion in Notepad++

北城以北 提交于 2019-11-30 17:25:50
I use CFEclipse for most of my projects and heavy lifting but sometimes I find the need to do a quick fix on pages outside the project scope that is easier to accomplish in a simple text editor. I have googled but can't seem to find an answer so either a link to a download or a link to how to build my own would be awesome. thanks. orangepips Update : Brien Malone's answer below along with charlie arehart's comments are what people should use at this point as nppColdFusion is no longer maintained as of 23 Sept 2011. Disregard nppColdFusion is actively maintained In notepadd ++, go to 'Plugins'>

Trying to find a syntax highlighter for ColdFusion in Notepad++

二次信任 提交于 2019-11-30 16:38:28
问题 I use CFEclipse for most of my projects and heavy lifting but sometimes I find the need to do a quick fix on pages outside the project scope that is easier to accomplish in a simple text editor. I have googled but can't seem to find an answer so either a link to a download or a link to how to build my own would be awesome. thanks. 回答1: Update : Brien Malone's answer below along with charlie arehart's comments are what people should use at this point as nppColdFusion is no longer maintained as

Parse a specific variable from a url stored as a string with CFML

这一生的挚爱 提交于 2019-11-29 11:32:48
I want to parse a specific url variable key value from a url stored as a string. It seems that you can use the underlying java library coldfusion.util.HTMLTools under ACF, but I need it to work under Railo as well. Is there another way, or is using a regular expression the best answer? I'm trying to retrieve the value of the url variable key without the anchor in a url formatted like the following example. http://example.com?key=134324625625435#gid=0 I was posting as a comment on Scott's answer, but it was getting too long, so... John wrote: Running the following example I end up with the