This page is build using a simple template file found at WEB-INF/page-templates/base-page.html which contains a custom action mycommand.HelloCommand The source for the command is :

package mycommand;

import java.io.IOException;
import java.io.OutputStream;

import org.protorabbit.model.impl.BaseCommand;

public class HelloCommand extends BaseCommand {

    @Override
    public void doProcess(OutputStream out) throws IOException {
        
        String message = "hello ";
        
        if (params.length > 0) {
            message += params[0];
        }
        out.write(message.getBytes());
        
    }

}

To use the tag simply call it from your template:

<% mycommand.Hello('Proto Rabbit') %>

That is pretty much it. Have fun.