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 - merging the URL and FORM scopes

  1. Let's test this out. Create a form called scope_merge.cfm and add the following code:
    <cfif isDefined("form.firstname")>
    <cfdump eval=FORM>
    <cfdump eval=URL>
    </cfif>
    <form action="scope_merge.cfm?name=Wilhelm&test=5" method="post">
    <input type="Hidden" name="firstname" value="John">
    <input type="Hidden" name="Name" value="Doe">
    <input type="Submit">
    </form>
    
  2. This code creates a form that will submit and create FORM variables that are hidden, as well as URL variables.
  3. When we call this template, by going to http://localhost:8888/scope_merge.cfm, we get a simple form which, when submitted, gives the following output:
  4. Now, if we go to the Railo Web Administrator and tick the checkbox next to the Merge ...

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