Railo 3 Beginner’s Guide

Easily develop and deploy complex applications online using the powerful Railo Server with this book and ebook

Railo 3 Beginner’s Guide

Beginner's Guide
Mark Drew et al.

Easily develop and deploy complex applications online using the powerful Railo Server with this book and ebook
$10.00
$44.99
RRP $26.99
RRP $44.99
eBook
Print + eBook
$12.99 p/month

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

+ Collection
Free Sample

Book Details

ISBN 139781849513401
Paperback364 pages

About This Book

  • 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

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.

Table of Contents

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?
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
Time for action - single tag example
CFML functions
Time for action - using built-in functions
Time for action - using user-defined functions
CFML variables
Time for action - using structures
Time for action - creating an array
CFML scopes
Time for action - adding a variable to the SERVER scope
Time for action - creating the APPLICATION scope
Time for action - creating a SESSION scope in your Application
Time for action - using the REQUEST Scope
Handling web data
Time for action - getting variables from the URL
Time for action - getting FORM variables
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
Time for action - calling stored procedures
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
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
Time for action - comparing template caching settings
Time for action - restricting the scoping of variables
Time for action - merging the URL and FORM scopes
Time for action - creating a search collection
Time for action - creating mappings in our application
Time for action - using magic functions
Time for action - setting the debug template
Summary
Chapter 5: Developing Applications with Railo Server
Railo applications
Time for action - building the simplest application
Time for action - defining the application
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
Time for action - creating a cache connection
Time for action - using the Cache object
Time for action - getting well versed with more caching functions
Time for action - caching a page with cfcache
Time for action - caching content within a template
Time for action - caching a query using cachedwithin
Time for action - assigning an EHCache Lite connection to resources
Summary
Chapter 6: Advanced CFML Functionality
Scripting within Railo Server
The <cfscript> tag
Time for action - looping through a list
Time for action - looping an array
Time for action - looping through a structure
Time for action - looping over queries
Time for action - creating the component
Time for action - getting the contents of another site
Time for action - using the <cfloop> tag in CFScript
Time for action - get a user by his/her ID
Time for action - using the Query component
Time for action - getting the content of a website via the HTTP component
Summary
Chapter 7: Multimedia and AJAX
Video
Time for action - displaying a video player
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
Time for action - creating our own CFML function
Installing extensions
Time for action - installing an extension for the web context
Time for action - installing the Galleon forums web application
Time for action - creating our own Railo application extension
Time for action - creating our own extension provider
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

What You Will Learn

  • 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.

Authors

Table of Contents

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?
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
Time for action - single tag example
CFML functions
Time for action - using built-in functions
Time for action - using user-defined functions
CFML variables
Time for action - using structures
Time for action - creating an array
CFML scopes
Time for action - adding a variable to the SERVER scope
Time for action - creating the APPLICATION scope
Time for action - creating a SESSION scope in your Application
Time for action - using the REQUEST Scope
Handling web data
Time for action - getting variables from the URL
Time for action - getting FORM variables
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
Time for action - calling stored procedures
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
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
Time for action - comparing template caching settings
Time for action - restricting the scoping of variables
Time for action - merging the URL and FORM scopes
Time for action - creating a search collection
Time for action - creating mappings in our application
Time for action - using magic functions
Time for action - setting the debug template
Summary
Chapter 5: Developing Applications with Railo Server
Railo applications
Time for action - building the simplest application
Time for action - defining the application
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
Time for action - creating a cache connection
Time for action - using the Cache object
Time for action - getting well versed with more caching functions
Time for action - caching a page with cfcache
Time for action - caching content within a template
Time for action - caching a query using cachedwithin
Time for action - assigning an EHCache Lite connection to resources
Summary
Chapter 6: Advanced CFML Functionality
Scripting within Railo Server
The <cfscript> tag
Time for action - looping through a list
Time for action - looping an array
Time for action - looping through a structure
Time for action - looping over queries
Time for action - creating the component
Time for action - getting the contents of another site
Time for action - using the <cfloop> tag in CFScript
Time for action - get a user by his/her ID
Time for action - using the Query component
Time for action - getting the content of a website via the HTTP component
Summary
Chapter 7: Multimedia and AJAX
Video
Time for action - displaying a video player
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
Time for action - creating our own CFML function
Installing extensions
Time for action - installing an extension for the web context
Time for action - installing the Galleon forums web application
Time for action - creating our own Railo application extension
Time for action - creating our own extension provider
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

Book Details

ISBN 139781849513401
Paperback364 pages
Read More

Recommended for You

Building Dynamic Web 2.0 Websites with Ruby on Rails
$ 10.00
Ruby on Rails Enterprise Application Development: Plan, Program, Extend
$ 10.00
Grails 1.1 Web Application Development
$ 10.00
Rails 4 Application Development HOTSHOT
$ 10.00