Railo 3 Beginner’s Guide


Railo 3 Beginner’s Guide
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
$22.94
save 15%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
$44.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • A complete guide to developing an application with Railo from start to finish
  • In depth coverage of installing Railo Server on different environments
  • A detailed look ORM, AJAX, Flex and other technologies to boost your development

Book Details

Language : English
Paperback : 364 pages [ 235mm x 191mm ]
Release Date : December 2011
ISBN : 1849513406
ISBN 13 : 9781849513401
Author(s) : Mark Drew , Gert Franz, Paul Klinkenberg, Jordan Michaels
Topics and Technologies : All Books, Networking and Servers, Beginner's Guides, Open Source, Web Development

Table of Contents

Preface
Chapter 1: Introducing Railo Server
Chapter 2: Installing Railo Server
Chapter 3: CFML Language
Chapter 4: Railo Server Administration
Chapter 5: Developing Applications with Railo Server
Chapter 6: Advanced CFML Functionality
Chapter 7: Multimedia and AJAX
Chapter 8: Resources and Mappings
Chapter 9: Extending Railo Server
Chapter 10: Creating a Video-sharing Application
Index
  • Chapter 1: Introducing Railo Server
    • Why use Railo Server?
    • What does Railo Server do?
    • A better look at Railo Server
    • What else can you do with Railo Server?
      • CFML compiler
      • Railo archives—compiled code
      • Wide variety of CFML tags and functions
      • Object-oriented approach
      • Scripting support
      • Integrated administration frontend
      • Background task execution
      • Extension manager
      • Easy update mechanism
      • Compatibility
      • Framework and application compatibility
      • Security
      • Virtual filesystems
      • High performance
      • Easy installation
      • Inexpensive and free
      • Easy clustering
    • Summary
    • Chapter 2: Installing Railo Server
      • Getting up and running with Railo Express
      • Time for action – downloading Railo
      • Customizing Railo Express
      • Time for action – setting the administrator's password
      • Running the Railo Server Tomcat installer
      • Time for action – installing on Windows
      • Adding CFML-enabled sites to IIS7
      • Time for action – adding a site to IIS7
      • Getting up and running with the Railo WAR and Jetty
      • Time for action – downloading and installing Jetty
      • Time for action – booting up Jetty
      • Time for action – downloading and deploying the Railo WAR
      • Summary
      • Chapter 3: CFML Language
        • Basics of the CMFL language
        • Time for action – Hello World!
        • CFML tags
          • Single tags with attributes
          • Tags with expressions
        • Time for action – single tag example
          • Tags with content
          • Tags with sub tags
        • CFML functions
        • Time for action – using built-in functions
          • User-defined functions
        • Time for action – using user-defined functions
        • CFML variables
          • Structure variables
        • Time for action – using structures
          • Array variables
        • Time for action – creating an array
        • CFML scopes
          • SERVER scope
        • Time for action – adding a variable to the SERVER scope
          • APPLICATION scope
        • Time for action – creating the APPLICATION scope
          • SESSION scope
        • Time for action – creating a SESSION scope in your Application
          • REQUEST scope
        • Time for action – using the REQUEST Scope
          • CGI scope
        • Handling web data
          • URL variables
        • Time for action – getting variables from the URL
          • FORM variables
        • Time for action – getting FORM variables
          • Cookies
        • Database access
        • Time for action – installing MySQL and setting up our database
        • Time for action – configuring data sources in Railo Server
        • Time for action – running queries against our database
          • Queries with parameters
          • What just happened?
          • Stored procedures
        • Time for action – calling stored procedures
          • Object Oriented Programming with Components
        • Time for action – creating the Employee component
        • Summary
        • Chapter 4: Railo Server Administration
          • Server and Web context
          • Time for action – setting up an example context
            • Setting up security
          • Time for action – setting your password
          • How contexts relate to each other
          • Time for action – setting the time zone
          • The Railo Web Administrator
          • Time for action – investigating the Web Administrator
            • Settings
              • Performance/Caching
          • Time for action – comparing template caching settings
            • Regional
            • Charset
            • Scope
        • Time for action – restricting the scoping of variables
        • Time for action – merging the URL and FORM scopes
          • Application
          • Output
          • Error
        • Services
          • Event Gateway
          • Cache
          • Datasource
          • ORM
          • Search
        • Time for action – creating a search collection
          • Mail
          • Tasks
          • Scheduled tasks
        • Extension
          • Applications
          • Providers
        • Remote
          • Archives and resources
          • Mappings
        • Time for action – creating mappings in our application
          • Component
        • Time for action – using magic functions
          • Additional resources
          • Custom tags
          • CFX tags
        • Development
        • Time for action – setting the debug template
          • Security
          • Documentation
        • Summary
          • Chapter 5: Developing Applications with Railo Server
            • Railo applications
            • Time for action – building the simplest application
            • Time for action – defining the application
              • Session and client settings
            • Application events
            • Object relational mapping with Railo Server
            • Time for action – upgrading Railo Server
            • Creating our database persistence store
            • Time for action – creating a database
            • Time for action – creating our railoblog datasource
            • Using persistent components
            • Time for action – creating the blog
            • Time for action – listing our blog posts
            • Time for action – adding comments
            • Caching in Railo Server
              • Cache: what is it good for?
            • Time for action – creating a cache connection
            • Time for action – using the Cache object
            • Time for action – getting well versed with more caching functions
              • Cache providers
              • Cache types
            • Time for action – caching a page with cfcache
              • Partial template caching
          • Time for action – caching content within a template
            • Query cache
          • Time for action – caching a query using cachedwithin
            • Resource cache
          • Time for action – assigning an EHCache Lite connection to resources
          • Summary
            • Chapter 6: Advanced CFML Functionality
              • Scripting within Railo Server
                • Why tags are good
                • Why tags are bad
              • The <cfscript> tag
                • Loops
                  • Looping lists
              • Time for action – looping through a list
                • Looping arrays
            • Time for action – looping an array
              • Looping structures
            • Time for action – looping through a structure
              • Looping queries
            • Time for action – looping over queries
              • Scripted components
            • Time for action – creating the component
              • Scripting tags
            • Time for action – getting the contents of another site
              • Scripting wrapped tags
            • Time for action – using the <cfloop> tag in CFScript
              • Scripting wrapped tags—Part 2
            • Time for action – get a user by his/her ID
              • Built-in components
                • The Query built-in component
            • Time for action – using the Query component
              • The HTTP built-in component
            • Time for action – getting the content of a website via the HTTP component
            • Summary
              • Chapter 7: Multimedia and AJAX
                • Video
                  • Displaying video
                • Time for action – displaying a video player
                  • Converting a video
                • Time for action – installing the Video Extension
                • Time for action – creating clips for our video player
                • Time for action – creating poster frames and clips
                • Time for action – adding a playlist to <cfvideoplayer>
                • AJAX functionality within the Railo server
                • Time for action – setting up the application and services
                • Time for action – binding the input to the component
                • Time for action – displaying the tasks
                • Time for action – deleting a task
                • Summary
                • Chapter 8: Resources and Mappings
                  • Railo resources
                  • Accessing files locally
                  • Time for action – writing and reading files
                  • Looping files
                  • Time for action – looping through the contents of a file Mappings
                  • Time for action – creating a mapping for the log file
                  • Accessing code from mappings
                  • Time for action – creating our components
                  • Railo archives
                  • Time for action – creating a Railo archive
                  • Mappings and their settings
                  • Time for action – changing the settings of a mapping
                  • Accessing your files from ZIP and TAR files
                  • Time for action – accessing files from a ZIP file
                  • Using RAM as a quick location to store files
                  • Time for action – compiling plain text to CFML
                  • Using Amazon's Simple Storage Service to use files in the Cloud
                  • Time for action – using Amazon's Simple Storage Service (S3)
                  • Summary
                  • Chapter 9: Extending Railo Server
                    • Why create your own CFML tags and functions?
                    • Time for action – creating our own CFML tag
                      • CFML functions
                    • Time for action – creating our own CFML function
                      • Using return type "any"
                      • Structure and array notation in the form and URL scope
                  • Installing extensions
                  • Time for action – installing an extension for the web context
                    • Server versus web extensions
                    • The extension installation system
                  • Time for action – installing the Galleon forums web application
                  • Time for action – creating our own Railo application extension
                    • Creating the Famous Quotes App
                  • Time for action – creating our own extension provider
                    • The ExtensionProvider CFC
                      • GetInfo structure information
                      • ListApplications query information
                      • GetDownloadDetails function
                    • The role of the Web ID and Server ID
                  • The Railo Extension Store
                  • Summary
                    • Chapter 10: Creating a Video-sharing Application
                      • VideoShare: Getting to know our application
                      • Goals of the application
                      • Creating our application
                      • Time for action – creating our basic application
                      • Laying it all out
                      • Time for action – creating the layout custom tag
                      • Registering users
                      • Time for action – creating our user model object
                      • User login and logout
                      • Time for action – log in or log out of the application
                      • Uploading videos
                      • Time for action – uploading a video
                      • Adding security
                      • Time for action – adding the secure tag
                      • Assigning videos to users
                      • Time for action – storing our video to the database
                      • Converting and playing videos
                      • Time for action – converting the uploaded video
                      • Creating thumbnails for our videos
                      • Time for action – creating images from a video
                      • Adding comments to our video page
                      • Time for action – adding comments to our videos
                      • Creating the home page
                      • Time for action – getting the latest videos
                      • Summary

                      Mark Drew

                      Mark Drew has been developing web applications for a number of clients since the mid-90s. He has been using ColdFusion and writing in CFML since 1996, and even though he has had the occasional forays into Perl, ASP, PHP, Rails and Java, he is still loving every line of code he has crafted with CFML. Mark has been part of the CFEclipse Project developing a CFML IDE and Project Manager for the Reactor ORM Project as well as contributor to a number of frameworks. His career has concentrated on e-commerce, Web Content Management and Application Scalability for various well-known brands in the UK as well as the rest of the world. Mark is also a well-known speaker at various conferences on subjects close to his heart such as ORM's, Frameworks, Development Tooling and Process, as well as noSQL databases and a range of other topics. Mark lives in Greenwich, London, where the Mean Time comes from. Mark isn’t mean of course. He works as the CEO of Railo Technologies Limited, a web development consultancy and Professional Open Source provider of Railo Server. Check us out at http://www.getrailo.com

                      Gert Franz

                      Gert Franz was born in 1967 in Romania. He moved to Germany in 1982. He studied Astrophysics in Munich in the early nineties and lives in Switzerland since 1998. Gert is a father of three children and lives in with his Swiss girlfriend, somewhere next to Zurich. Even though the jobs Gert had did not involve Astronomy in any way, he still remained loyal to it as a hobby and from time to time he taught local classes about the wonders and miracles of Astronomy. In the past 20 years, he worked as a Senior Programmer for several different companies and leads Railo Technologies Switzerland as a CEO since its foundation in 2007. Gert is a well-known speaker who appeared and appears at several different conferences around the world. Mostly, he speaks about Railo and/or performance tuning. Besides speaking, Gert programs a lot, and does all different kinds of consulting related to Railo, CFML, databases, and system architectures. He is a specialist in performance tuning, especially with MSSQL and Railo. Next to the things mentioned before, Gert hosts Railo training sessions and performance-tuning training sessions around the world. Along the way, Gert acquired a deep knowledge in Railo, CFML, Delphi, C, ASP, SQL, SQL tuning, and other programming-related things.

                      Paul Klinkenberg

                      Paul Klinkenberg (1979) is a long-time CFML addict, living in The Netherlands with his wife Emma and baby daughter Luce. His history in both Commercial Economics and Fine Arts were no match for the enthusiasm he got from programming. In his 10+ years of experience in programming in CFML, he has always been investigating and pushing the boundaries of this magnificent language constantly. As a Railo Team member, he is in charge of managing and promoting Railo Extensions. He never stops thinking and creating new features for Railo Server, and tries to evangelize Railo as much as possible. He shares code projects and ideas via his weblog http://www.railodeveloper.com. Though it has gotten a lot quieter on his blog lately, as his beautiful baby daughter Luce, born in 2011, gets a lot of his attention. Paul is currently employed at the Dutch web-development company and Railo partner Carlos Gallupa BV. He is also working on projects through his own company Ongevraagd Advies, which means unasked advice. Friends and clients often say the name suits him really well, with his power to thoroughly analyze project plans and ideas, and come up with new ideas and suggestions out of the blue.

                      Jordan Michaels

                      Jordan Michaels currently participates in the Railo Team as the Community Deployments Coordinator, where his duties include coordinating efforts and documentation on how to deploy Railo in various environments. Jordan has been a CFML enthusiast and developer for just over 8 years, and is now the co-owner of Vivio Technologies where he operates as a CEO. Jordan is an active participant in the CFML community providing evangelism, community support, and has also printed various articles on CFML. Jordan is also an amateur musician and science buff. Jordan currently resides with his wife and two sons in WA state, USA.
                      Sorry, we don't have any reviews for this title yet.

                      Code Downloads

                      Download the code and support files for this book.


                      Submit Errata

                      Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

                      Sample chapters

                      You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                      Frequently bought together

                      Railo 3 Beginner’s Guide +    Oracle Advanced PL/SQL Developer Professional Guide =
                      50% Off
                      the second eBook
                      Price for both: £28.05

                      Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                      What you will learn from this book

                      • Step-by-step instructions for developing web sites with CFML
                      • Learn about all the resource types available and how to handle them
                      • Easy to follow steps to optimise your application for high traffic
                      • Create dynamic applications with the in-built Hibernate ORM
                      • Secure your server by setting up access restrictions and passwords
                      • Convert and display multimedia within your webpages
                      • Create your own extensions for custom functionality

                       

                      In Detail

                      Railo Server is one of the quickest ways to start developing complex web applications online. Widely considered as the fastest CFML (ColdFusion Markup Language) engine, Railo allows you to create dynamic web pages that can change depending on user input, database lookups, or even the time of day.

                      Railo 3 Beginner’s Guide will show you how to get up and running with Railo, as well as developing your web applications with the greatest of ease. You will learn how to install Railo and the basics of CFML to allow you to gradually build up your knowledge, and your dynamic web applications, as the book progresses.

                      Using Packt’s Beginner’s Guide approach, this book will guide you, with step-by-step instructions, through installing the Railo Server on various environments. You will learn how to use caches, resources, Event Gateways and special scripting functions that will allow you to create webpages with limitless functionality. You will even explore methods of extending Railo by adding your own tags to the server and building custom extensions.
                      Railo 3 Beginner’s Guide is a must for anyone getting to grips with Railo Server.

                      Approach

                      Part of Packt’s Beginner’s Guide series, this book uses practical examples and screenshots to steadily guide the reader through setting up and using Railo.

                      Who this book is for

                      If you want to develop your own dynamic web applications using CFML, then this book is for you. No prior experience with Railo or CFML is required, although you will be expected to have some web application development experience and knowledge of HTML.

                      Code Download and Errata
                      Packt Anytime, Anywhere
                      Register Books
                      Print Upgrades
                      eBook Downloads
                      Video Support
                      Contact Us
                      Awards Voting Nominations Previous Winners
                      Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                      Resources
                      Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software