O'Reilly logo

Railo 3 Beginner’s Guide by Mark Drew

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - creating mappings in our application

Let's create a mapping to include a file from our application.

  1. In our webroot, let's create a folder called includes.
  2. In the includes directory, add a template that will simply show the time; let's call it inc.cfm and add the following code:
    <cfoutput>#Now()#</cfoutput>
    
  3. Then, in the Railo Web Administrator, head to the Mappings section, enter /myinc under the Virtual column entry box, and then enter the full path to the includes folder under the Resource column:
    Time for action - creating mappings in our application
  4. Once we have done that, click on the save button.
  5. In our webroot folder, let's create another template this time called mapping_test.cfm ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required