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 the blog

Let's get down to creating our blog. To keep it simple, we are only going to have one main page that will show our posts. We will get a few blog posts and comments and display those.

  1. In your <Railo Install Directory>/webroot directory, create a new folder called blog.
  2. Create the main index.cfm page with the following code:
    <!DOCTYPE html> <html lang="en"> <head> <title>My Blog</title> <meta name="author" content="Mark Drew"> </head> <body> <h1>My Blog</h1> <h2>Add a new blog post</h2> <form action="addpost.cfm" method="post"> <p> <label for="title">Title:</label> <input type="text" name="title" value="" id="title"> </p> <p> <label for="content">Content</label> <textarea name="content" rows="content" cols="40" ...

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