railo

Headless java servlet?

I've got a stand alone, headless, java server app that does a bunch of queue-based processing against a database that I'm thinking of migrating into a java app server. I've got plenty of back-end java experience and a bit of JSP, but not a lot of servlet experience. It seems like the approach would be to just wrap my app into a servlet...

Inexpensive CFML hosting on servers in EU

I'd like to change shared-hosting from servers located in US to EU in order to decrease number of hops and latency. Anyone having first hand experience with Coldfusion/Railo/OBD hosting providers from Europe? ...

Verify mail server connection programmatically in ColdFusion

I'm using custom SMTP servers and would like to verify the connection when user enters his own server credentials. Exactly the same type of check as Adobe CF and Railo allow to do when adding mail server. Sure, this does not guarantee that delivery will be working, but at least to check that entered server/username/pass are valid. I...

Is it ok to store large objects (java component for example) in an Application variable?

I am developing an app right now which creates and stores a connection to a local XMPP server in the Application scope. The connection methods are stored in a cfc that makes sure the Application.XMPPConnection is connected and authorized each time it is used, and makes use of the connection to send live events to users. As far as I can t...

Will a CF code run on regular server?

I am tasked to integrate a CF code(about 70 lines) into our site then configure it to communicate to another site's server. However, our hosting site is just a typical server without CF support. Will the code run? All I know is that CF is Adobe's version of PHP and ASP. I have no experience coding it. Could you please enlighten me? From ...

How can I do a "deep compare" or "diff" on two Structs?

(This is a coldfusion question) I've got two different Structs that may or may not contain the same data, and I want to be able to see if they do! My Structs will always contain simple values (Numbers, Strings or Booleans) because they are being created with DeserializeJSON, so hopefully this can be done easily. I found Ben Nadel's pos...

Captcha doesn't work correctly in Railo using CFIMAGE

Hello, I was playing around with CAPTCHA in Railo using CFIMAGE recently and for some reason I couldn't make it work correctly. It generates the image and it shows up in the browser, but the font looks strange and the letters are placed all over, usually one half on top and the other on the bottom of the image. Here's my code: ...

how to do url rewriting in resin(railo)

Let's say users browse to http://www.site.com/test1/test2/test3 now I would like to rewrite the url to http://www.site.com/index.cfm?var1=test1&amp;var2=test2&amp;var3=test3 So far I have added the following in the resin.conf file: <web-app id="/" root-directory="webroot"> <rewrite-dispatch> <forward regexp="^/([^/]+...

Captcha doesn't work correctly in Railo using CFIMAGE

Hello, I was playing around with CAPTCHA in Railo using CFIMAGE recently and for some reason I couldn't make it work correctly. It generates the image and it shows up in the browser, but the font looks strange and the letters are placed all over, usually one half on top and the other on the bottom of the image. Here's my code: And t...

Use SerializeJSON to return an array of structs instead of JSON object with COLUMNS and DATA nodes?

Hi all, I am building a Railo app which deals with a lot of JSON data sent back and forth via Ajax. I've identified an opportunity to optimize its performance, but I'd like to hear some advice from the community before I tackle it. Here is a good example of the situation. I have an action on the server that queries a set of bid respon...

Railo (ColdFusion): cfdocument mimetype="application/msword" issue

Hi, I'm trying to export a Word (2000) doc to PDF and ran into a problem. Here's the details. // get the doc content into a cf var // use cfdocument to save the var as a pdf doc #mydoc# The generated pdf file looks minimized and crammed, some of its content is legible, the original Word doc (2000) is of 275k. Railo version is 2...

Railo: won't find default at http://domain.com

I'm having an issue with Railo 3.1.0 running under Apache on Windows Server 2003. When going to http://www.domain.com it defaults to index.cfm. When going to http://domain.com it doesn't find index.cfm. http://domain.com/index.cfm works fine. Anyone know where I can configure this? ...

Railo + Tomcat + IIS7 - Default/Blank Host Header

Quick question: Is there a way to set up a blank or default virtual host within server.xml simlar to setting up a blank host header in IIS? Lengthy Explanation: I've set up a Railo server following the guidelines explained here: http://www.dougboude.com/blog/1/2009/09/Railo-31-on-Windows-Server-2008-and-IIS7--Part-3-of-3.cfm I want t...

Quick regexp question for Railo

Hi, I guess the following line of code looks familiar to many... [^A-Za-z0-9] And what I'd like to do is to keep a block of "text", alphnumeric as stated above and plus punctuations and other special characters that sql for MS Access can handle, also, the special character of # sign would be replaced with ## (a double of it to escape a ...

CFHTTP Content-Length Header for post to Google Voice "API"

Greetings. I'm trying to send a quick sms through google voice using their existing API. I think the api is what's left from the Grand Central days. They don't have much documentation. Here's where I got my documentation: http://posttopic.com/topic/google-voice-add-on-development I can authenticate using cfhttp and get the correct resp...

ColdFusion Send page as it process it

Is there a way in ColdFusion (or Railo for that matter) to begin sending the client the page as it processes it? ...

ColdFusion: Reset JRun server

Is there a way to reset the JRun server from within a ColdFusion page? ...

How do I generate an OpenOffice Draw document?

I want to create a flowchart in OpenOffice Draw. Since there's a lot of steps to show (and may change in future) but I can extract the data, I want to automate the creation with the following steps: Create a new ODG document with specified page settings. Insert flow chart shapes with specified properties. Connect those things with arr...

Coldfusion / Railo paths question for live server

Hi My website files are located with the folder structure as such: * Webroot ** mydomain ** sharedimages In IIS, my website is setup with www.mydomain.com pointing to Webroot->mydomain as it's home directory. In my site, I need to somehow display images located in the 'sharedimages' folder. Obviously though, I can't go ww...