Railo Blog; an alternative CF engine.
Railo Server creates a new web context for every website running on the same Railo instance. And since you have an individual web administrator available for each website, you can define different settings for each website which for instance allows you to configure two websites that they run in …
This is a feature in Railo that confuses new Railo users very often. Railo comes with two types of administrators. In fact there are two type of administrators for every website you host on a system. In Railo all the settings you make in the Railo Web Administrator affect only the website you …
Imagine you would have to pass an applications name as an url parameter. You would probably end up doing something like this: <cfset stAppSettings = getApplicationSettings()>
<a href="whatever.cfm?appName=#stAppSettings.name#">... There is a shorter way of doing this without having …
Sometimes it is important to know whether a certain variable points to the same instance of a complex object than another one. You can easily find that out with the following operator: <cfscript>
if (a === b) {
writeOutput("same instance");
} else
{
writeOutput("different …
CFML only has some equivalents to the available tags in CFSCRIPT. In Railo you can now use almost all tags by just removing the "<cf" and replacing the last ">" with a ";" So this: <cfinclude template="index.cfm"> becomes this: include template="index.cfm"; If you want to find out …
When you need to create a query object, it can be a bit complicated to create one with several columns and rows. Take a look at the following example: <cfset qry = queryNew("Firstname,Name,Zip,Country")>
<cfset queryAddRow(3)>
<cfset querySetCell(qry, "Firstname", "Gert", …
If you want to migrate an existing server onto a new platform, for instance move from dev to production or update from one application server to a different one, migrating the settings can be a challenge. This is not a problem with Railo Server. Since Railo stores its settings in several XML …
The default looping approach one has is to either loop from 1 to the last element of an array or to use the <cfloop array=”#theArray#” index=“element”> notation. Next to the fact that the naming is misleading, both approaches have a disadvantage. So let's have a look: <cfset aArray = …
You can configure your Railo resources by editing the railo-web.xml.cfm or railo-server.cfm file. In these files you will find an entry that looks like this: …
Nic Tunney has a blog post on deploying Railo, Tomcat and Apache on Amazon EC2 Ubuntu AMI . The money quote: There are 13 actual commands to install Apache, Railo and Tomcat. There are 7 lines of configuration to paste into two config files. It doesn't get much easier. We agree :)