With Click you add objects to your page template using the Page's model. You can then access these objects using Velocity's $ reference notation. By default the ClickServlet adds the following objects to page templates:

any public Page fields using the field's name

context - the Servlet context path, e.g. /mycorp

cssImports - the CSS imports and style blocks to include in the page's header.

format - the Format object for formatting the display of objects.

imports - the CSS and JavaScript imports to include in the page's header.

jsImports - the JavaScript imports and script blocks to include in the page's footer.

messages - the MessagesMap adapter for the Page getMessage() method.

path - the path of the page template to render.

request - the page's HttpServletRequest object.

response - the page's HttpServletResponse object.

session - the SessionMap adapter for the user's HttpSession.

In your page templates you can access object references using a dot path notation. For example: