A custom page does not have any configuration out of the box (save for the page configuration common to all page actions). However, being an extension point, you can replace its simple configuration page with whatever you want.

Here, we only show how to "configure" the simple script that you get when you create a new custom page. By replacing the path shown in the picture, you can render your own JSP page instead of the built-in sample. That alone opens a lot of possibilities for customization without writing any Groovy or Java code, although we recommend to use the JSP for presentation and very simple logic only, and to place any complex code, business logic, etc. in the Groovy source.

You can use the sample JSP as a template for your own page. You can find it inside the Portofino web application directory, under layouts/custom, as shown in the picture. Just copy it somewhere inside your_app/web - say, my/own/page.jsp - and edit it as you like. Then, to refer to it in the Groovy code without having to specify its full path, use:

String fwd = getAppJsp("/my/own/page.jsp");
return forwardTo(fwd);

You can add attributes like this

XhtmlBuffer value = new XhtmlBuffer()

to be used in the jsp page 

<p> Value: ${actionBean.value} </p>

or add a new method to return data after a GET request like /mypage?getValue

public Resolution getValue() {
    return new StreamingResolution( MimeTypes.TEXT_HTML_UTF8 , value.toString() );
}