Nic Tunney has a blog post on deploying Railo, Tomcat and Apache on Amazon EC2 Ubuntu AMI.
Nic Tunney on deploying Railo, Tomcat and Apache on Amazon EC2 Ubuntu AMI
March 10, 2012 · No Comments
→ No CommentsTags: Amazon Services · Configuration · HowTo · Linux · Railo 3.3
Railo Tip of the Week: Using the ternary operator
March 05, 2012 · 3 Comments
Using the ternary operator will shorten your if-decisions.
→ 3 CommentsTags: CFML · Tips
Railo - Parsing Dirty HTML into Valid XML
February 29, 2012 · 8 Comments
There are many times that you want to parse the output from a dirty HTML document. What do we mean by "dirty"? Well, we are used to parsing XML files fine, but HTML isn't like XML, it has open tags with no closers, it accepts both <br> and <br/> and generally it is all round messy.
In Railo 3.3 we have a function called HTMLParse() to go along with it's XML cousin XMLParse(). When you use this tag, you can then parse HTML into an XML Object. Let's look at the following example:
<!DOCTYPE html>
<html>
<head>
<title>My Dirty Document!</title>
<meta name="description" content="This is a dirty Document! It will have nasty bits in it!">
<meta name="keywords" content="dirty, html, nasty!">
</head>
<body>
<h1>This is a dirty document</h1>
<p>This is a dirty document that has nasty things in it, <br>like this break for example</p>
<hr>
<p>It could also have a nice break too! <br/> But that is by the by</p>
<ul>
<li><a href="http://www.getrailo.com/">Railo Technologies</a></li>
<li><a href="http://www.getrailo.org/">Railo Server</a></li>
<li><a href="http://www.google.co.uk/">Google</a></li>
<li><a href="http://www.markdrew.co.uk/blog/" >Mark Drew's website</a></li>
</ul>
</body>
</html>
You can see the dump of the document below (click for a larger image if you like)

The code above is a simple example of a complex webpage, including a bunch of links. So how about we go get the links from the code above?
If we now save the code above into <cfsavecontent> field and parse it:
<cfsavecontent variable="dirtyHTML">
<!DOCTYPE html>
<html>
<head>
<title>My Dirty Document!</title>
<meta name="description" content="This is a dirty Document! It will have nasty bits in it!">
<meta name="keywords" content="dirty, html, nasty!">
</head>
<body>
<h1>This is a dirty document</h1>
<p>This is a dirty document that has nasty things in it, <br>like this break for example</p>
<hr>
<p>It could also have a nice break too! <br/> But that is by the by</p>
<ul>
<li><a href="http://www.getrailo.com/">Railo Technologies</a></li>
<li><a href="http://www.getrailo.org/">Railo Server</a></li>
<li><a href="http://www.google.co.uk/">Google</a></li>
<li><a href="http://www.markdrew.co.uk/blog/" >Mark Drew's website</a></li>
</ul>
</body>
</html>
</cfsavecontent>
<cfset htmlParsedItem = HTMLParse(dirtyHTML)>
If we now want to get alll the links, we can do a XPath query:
<cfset links = XMLSearch(htmlParsedItem, "//*[name()='a']")>
<cfdump var="#links#">
You notice that the XMLSearch query is not your usual, you would have expected it to be something like "//a" for example, but this is because of the namespace that gets added to the XML object when it is converted. (We are looking at removing default namespaces, but if you add one it will be there of course)
When you run the code above, you get a nice array of link Elements in the XML document! Handy!
All is made much simpler with Railo!
→ 8 CommentsTags: HowTo · Railo 3.3 · Tips
Railo Memory Monitor 0.1 Beta now available
February 20, 2012 · No Comments
An early Beta of the Railo Memory Monitor plugin is now available. To install, go to Extension > Applications in your Server administrator. You'll find the Memory Monitor available as a free extension.
→ No CommentsTags:
Railo Tip of the Week: Installing SSL Certificates
February 06, 2012 · 4 Comments
As of Railo 3.3.2.001 you can install external SSL certificates of sites you want to access using CFHTTP and CreateObject(“webservice”).
→ 4 CommentsTags: Railo 3.3 · Security · Tips
Railo Tip of the Week: Railo Resources
January 30, 2012 · 4 Comments
Since Railo 2.0, it is possible to use all different kinds of virtual file systems with all different kind of file related tags. Railo supports the following virtual file systems
→ 4 CommentsTags: Reference · Tips
Railo Tip of the Week: Query Cache
January 23, 2012 · 2 Comments
If you are using the query cache and you would like to flush the cache you can use the tag <cfobjectcache action = "clear"> in order to do so.
→ 2 CommentsTags: HowTo · Performance · Tips
Railo Tip of the Week: Page Pool
January 16, 2012 · 7 Comments
Greetings and welcome to the first in our weekly series of Railo tips! Over the years, we've picked up a trick or two using Railo and we wanted to share these with you. And so, without further adieu, we are happy to present our first tip!
→ 7 CommentsTags: Performance · Tips
Railo 3.3.1.007 and Comment Metadata
December 20, 2011 · 9 Comments
Normally in patch releases we do not introduce new functionality. Except if they don't affect the runtime behaviour of Railo Server. With the latest release of Railo Server (3.3.1.007) we have introduced two new features I would like to present in more detail.
→ 9 CommentsTags: Features · HowTo · Open Source · Railo 3.3 · Tips
Railo Server software archive now online
December 13, 2011 · 1 Comment
If you've ever updated Railo, you probably found it very easy to do with our one-click install. Just click the update button on the Server admin and you're done! And if you need to remove an installed update, you can easily uninstall the latest (or all) patches with just a few more clicks.
But what if you need to install version 3.2.2.000, or 3.1.2.001, because that's what your client runs on? Or perhaps you'd like to test how much faster Railo Server became between version 1.0 and 3.3?
Well today, we are happy to announce the Railo Server archive, where you can find versions of Railo Server going all the way back to Railo 1.0! The archive is not yet complete, but almost all main versions and all release candidates for 3.3 are now online and downloadable!
Check it out at http://www.getrailo.org/index.cfm/download/olderversions/
→ 1 CommentTags: New release · Preview · Railo 1.1 · Railo 2.0 · Railo 3.0 · Railo 3.1 · Railo 3.1.2 · Railo 3.2 · Railo 3.3 · Reference · Release